Class: ISO8601::Days

Inherits:
Atom
  • Object
show all
Defined in:
lib/iso8601/atoms.rb

Overview

The Days atom in a 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”.

Instance Attribute Summary

Attributes inherited from Atom

#atom, #base

Instance Method Summary collapse

Methods inherited from Atom

#==, #eql?, #hash, #initialize, #to_f, #to_i, #to_s, #to_seconds, #value

Constructor Details

This class inherits a constructor from ISO8601::Atom

Instance Method Details

#factorObject

The Day factor



213
214
215
# File 'lib/iso8601/atoms.rb', line 213

def factor
  86400
end

#symbolSymbol

The atom symbol.

Returns:

  • (Symbol)


220
221
222
# File 'lib/iso8601/atoms.rb', line 220

def symbol
  :D
end