From ca795269a98e7ff0af4f607c1e23f77e71eac6f9 Mon Sep 17 00:00:00 2001 From: John Mettraux Date: Fri, 8 Mar 2024 06:14:02 +0900 Subject: [PATCH] State that #next #prev #within are >= 1.10, gh-94 --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 28685a7..fb4de04 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,8 @@ c = Fugit.parse_cron('0 12 * * mon#2') # `#next` and `#prev` return Enumerable instances # + # These two methods are available since fugit 1.10.0. + # c.next(Time.parse('2024-02-16 12:00:00')) .take(3) .map(&:to_s) @@ -157,6 +159,8 @@ c.prev(Time.parse('2024-02-16 12:00:00')) # instances that correspond to the occurrences of the cron within # the time range # + # This method is available since fugit 1.10.0. + # c.within(Time.parse('2024-02-16 12:00')..Time.parse('2024-08-01 12:00')) .map(&:to_s) # => [ '2024-03-11 12:00:00',