This class is important to handle XMLRPC
dateTime.iso8601
values, correcly, because normal UNIX-dates,
ie: Date, only handle dates from year 1970 on, and ruby's native Time class handles dates without the time
component.
XMLRPC::DateTime is able to store a XMLRPC dateTime.iso8601
value
correctly.
[R] | day | Return the value of the specified date/time component. |
[R] | hour | Return the value of the specified date/time component. |
[R] | min | Return the value of the specified date/time component. |
[R] | mon | Return the value of the specified date/time component. |
[R] | month | Return the value of the specified date/time component. |
[R] | sec | Return the value of the specified date/time component. |
[R] | year | Return the value of the specified date/time component. |
Creates a new XMLRPC::DateTime instance with
the parameters year
, month
, day
as
date and hour
, min
, sec
as time.
Raises an ArgumentError if a parameter
is out of range, or if year
is not of the Integer type.
Returns whether or not all date/time components are an array.
Set value
as the new date/time
component.
Raises an ArgumentError if the given
value
isn't between 1 and 31.
Set value
as the new date/time
component.
Raises an ArgumentError if the given
value
isn't between 0 and 24.
Set value
as the new date/time
component.
Raises an ArgumentError if the given
value
isn't between 0 and 59.
Set value
as the new date/time
component.
Raises an ArgumentError if the given
value
isn't between 1 and 12.
Set value
as the new date/time
component.
Raises an ArgumentError if the given
value
isn't between 0 and 59.
Returns all date/time components in an array.
Returns +[year, month, day, hour, min, sec]+.
Return a Date object of the date which represents self
.
The Date object do not contain the time component (only date).
Set value
as the new date/time
component.
Raises ArgumentError if the given
value
is out of range, or in the case of #year= if value
is
not of type Integer.