method

year=

year=(value)
public

Set value as the new date/time component.

Raises ArgumentError if the given value is out of range, or in the case of XMLRPC::DateTime#year= if value is not of type Integer.