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.

Returns:

  • (Numeric)

    the current value of day



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.

Returns:

  • (Numeric)

    the current value of hour



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.

Returns:

  • (Numeric)

    the current value of minute



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.

Returns:

  • (Numeric)

    the current value of month



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).

Returns:

  • (Numeric)

    the current value of second



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

def second
  @second
end

#yearNumeric

The number of years since 0000.

Returns:

  • (Numeric)

    the current value of year



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

def year
  @year
end