mirror of
https://github.com/plashchynski/crono.git
synced 2026-03-18 23:44:27 +01:00
Able to specify minutes for hour-based schedule. Closing #26
This commit is contained in:
@@ -49,7 +49,10 @@ module Crono
|
||||
end
|
||||
|
||||
def parse_at(at)
|
||||
fail "period should be at least 1 day to use 'at'" if @period < 1.day
|
||||
if @period < 1.day && (at.is_a? String || at[:hour])
|
||||
fail "period should be at least 1 day to use 'at' with specified hour"
|
||||
end
|
||||
|
||||
case at
|
||||
when String
|
||||
time = Time.parse(at)
|
||||
|
||||
Reference in New Issue
Block a user