Method: Puppet::Pops::Time::TimeData#to_int

Defined in:
lib/puppet/pops/time/timespan.rb

#to_intInteger

Returns the number of seconds with fraction part truncated.

Returns:

  • (Integer)

    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