Class: Puppet::Pops::Time::Timespan::Format::SecondSegment
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) ⇒ SecondSegment
459
460
461
|
# File 'lib/puppet/pops/time/timespan.rb', line 459
def initialize(padchar, width)
super(padchar, width, 2)
end
|
Instance Method Details
#append_to(bld, ts) ⇒ Object
467
468
469
|
# File 'lib/puppet/pops/time/timespan.rb', line 467
def append_to(bld, ts)
append_value(bld, use_total? ? ts.total_seconds : ts.seconds)
end
|
#multiplier ⇒ Object
463
464
465
|
# File 'lib/puppet/pops/time/timespan.rb', line 463
def multiplier
NSECS_PER_SEC
end
|