mirror of
https://github.com/plashchynski/crono.git
synced 2026-03-26 03:11:42 +01:00
Check period duration to be at least 1 day when using 'at'
This commit is contained in:
@@ -47,6 +47,7 @@ module Crono
|
||||
end
|
||||
|
||||
def parse_at(at)
|
||||
fail "period should be at least 1 day to use 'at'" if @period < 1.day
|
||||
case at
|
||||
when String
|
||||
time = Time.parse(at)
|
||||
|
||||
Reference in New Issue
Block a user