Module: Puppet::Pops::Time

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

Defined Under Namespace

Classes: TimeData, Timespan, Timestamp

Constant Summary collapse

NSECS_PER_USEC =
1000
NSECS_PER_MSEC =
NSECS_PER_USEC * 1000
NSECS_PER_SEC =
NSECS_PER_MSEC * 1000
NSECS_PER_MIN =
NSECS_PER_SEC  * 60
NSECS_PER_HOUR =
NSECS_PER_MIN  * 60
NSECS_PER_DAY =
NSECS_PER_HOUR * 24
KEY_STRING =
'string'.freeze
KEY_FORMAT =
'format'.freeze
KEY_NEGATIVE =
'negative'.freeze
KEY_DAYS =
'days'.freeze
KEY_HOURS =
'hours'.freeze
KEY_MINUTES =
'minutes'.freeze
KEY_SECONDS =
'seconds'.freeze
KEY_MILLISECONDS =
'milliseconds'.freeze
KEY_MICROSECONDS =
'microseconds'.freeze
KEY_NANOSECONDS =
'nanoseconds'.freeze