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


239
240
241
# File 'lib/iso8601/atoms.rb', line 239

def factor
  86400
end

#symbolSymbol

The atom symbol.

Returns:

  • (Symbol)

247
248
249
# File 'lib/iso8601/atoms.rb', line 247

def symbol
  :D
end