Method: Puppet::Pops::Time::TimeData#to_int
- Defined in:
- lib/puppet/pops/time/timespan.rb
#to_int ⇒ Integer
Returns the number of seconds with fraction part truncated.
56 57 58 |
# File 'lib/puppet/pops/time/timespan.rb', line 56 def to_int @nsecs / NSECS_PER_SEC end |