mirror of
https://github.com/plashchynski/crono.git
synced 2026-11-23 16:44:10 +01:00
Check period duration to be at least 1 day when using 'at'
This commit is contained in:
1 parent
6508197f26
commit
95a237aeb5
2 files changed
+7
No files matched your search
@@ -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