Class: IControl::Common::TimeStamp

Inherits:
Base::Struct
  • Object
show all
Defined in:
lib/icontrol/common.rb,
lib/icontrol/common.rb

Overview

A struct that describes the current time.

Instance Attribute Summary collapse

Instance Attribute Details

#dayNumeric

The day of the month, from 1 to 31.


202
203
204
# File 'lib/icontrol/common.rb', line 202

def day
  @day
end

#hourNumeric

The number of hours past midnight, from 0 to 23.


202
203
204
# File 'lib/icontrol/common.rb', line 202

def hour
  @hour
end

#minuteNumeric

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

#monthNumeric

The number of months since January, from 1 to 12.


202
203
204
# File 'lib/icontrol/common.rb', line 202

def month
  @month
end

#secondNumeric

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

#yearNumeric

The number of years since 0000.


202
203
204
# File 'lib/icontrol/common.rb', line 202

def year
  @year
end