Class: Puppet::Pops::Time::Timespan::Format::DaySegment
Instance Method Summary
collapse
#append_regexp, #append_value, #create_format, #nanoseconds, #set_use_total, #use_total?
Methods inherited from Segment
#append_regexp
Constructor Details
#initialize(padchar, width) ⇒ DaySegment
417
418
419
|
# File 'lib/puppet/pops/time/timespan.rb', line 417
def initialize(padchar, width)
super(padchar, width, 1)
end
|
Instance Method Details
#append_to(bld, ts) ⇒ Object
425
426
427
|
# File 'lib/puppet/pops/time/timespan.rb', line 425
def append_to(bld, ts)
append_value(bld, ts.days)
end
|
#multiplier ⇒ Object
421
422
423
|
# File 'lib/puppet/pops/time/timespan.rb', line 421
def multiplier
NSECS_PER_DAY
end
|