class ISO8601::Days
The Days
atom in a {ISO8601::Duration}
A “calendar day” is the time interval which starts at a certain time of day at a certain “calendar day” and ends at the same time of day at the next “calendar day”.
Constants
- AVERAGE_FACTOR
Public Class Methods
new(atom)
click to toggle source
@param [Numeric] atom The atom value
# File lib/iso8601/days.rb, line 17 def initialize(atom) valid_atom?(atom) @atom = atom end
Public Instance Methods
factor()
click to toggle source
The Day factor
@return [Numeric]
# File lib/iso8601/days.rb, line 27 def factor AVERAGE_FACTOR end
symbol()
click to toggle source
The atom symbol.
@return [Symbol]
# File lib/iso8601/days.rb, line 43 def symbol :D end
to_seconds()
click to toggle source
The amount of seconds
@return [Numeric]
# File lib/iso8601/days.rb, line 35 def to_seconds AVERAGE_FACTOR * atom end