class CronParser::InternalTime
internal “mutable” time representation
Attributes
day[RW]
hour[RW]
min[RW]
month[RW]
time_source[RW]
year[RW]
Public Class Methods
new(time,time_source = Time)
click to toggle source
# File lib/cron_parser.rb, line 12 def initialize(time,time_source = Time) @year = time.year @month = time.month @day = time.day @hour = time.hour @min = time.min @time_source = time_source end
Public Instance Methods
inspect()
click to toggle source
# File lib/cron_parser.rb, line 26 def inspect [year, month, day, hour, min].inspect end
to_time()
click to toggle source
# File lib/cron_parser.rb, line 22 def to_time time_source.local(@year, @month, @day, @hour, @min, 0) end