Class: IControl::Common::TimeStamp
- Inherits:
-
Base::Struct
- Object
- Base::Struct
- IControl::Common::TimeStamp
- Defined in:
- lib/icontrol/common.rb,
lib/icontrol/common.rb
Overview
A struct that describes the current time.
Instance Attribute Summary collapse
-
#day ⇒ Numeric
The day of the month, from 1 to 31.
-
#hour ⇒ Numeric
The number of hours past midnight, from 0 to 23.
-
#minute ⇒ Numeric
The number of minutes after the hour, from 0 to 59.
-
#month ⇒ Numeric
The number of months since January, from 1 to 12.
-
#second ⇒ Numeric
The number of seconds after the minute, from 0 to 59 (can be up to 61 to allow for leap seconds).
-
#year ⇒ Numeric
The number of years since 0000.
Instance Attribute Details
#day ⇒ Numeric
The day of the month, from 1 to 31.
202 203 204 |
# File 'lib/icontrol/common.rb', line 202 def day @day end |
#hour ⇒ Numeric
The number of hours past midnight, from 0 to 23.
202 203 204 |
# File 'lib/icontrol/common.rb', line 202 def hour @hour end |
#minute ⇒ Numeric
The number of minutes after the hour, from 0 to 59.
202 203 204 |
# File 'lib/icontrol/common.rb', line 202 def minute @minute end |
#month ⇒ Numeric
The number of months since January, from 1 to 12.
202 203 204 |
# File 'lib/icontrol/common.rb', line 202 def month @month end |
#second ⇒ Numeric
The number of seconds after the minute, from 0 to 59 (can be up to 61 to allow for leap seconds).
202 203 204 |
# File 'lib/icontrol/common.rb', line 202 def second @second end |
#year ⇒ Numeric
The number of years since 0000.
202 203 204 |
# File 'lib/icontrol/common.rb', line 202 def year @year end |