set year
Sets the year component of a datetime
(datetime subject, long year) -> datetime
Returns datetime subject with the year component set to year.
If the day of month is invalid for the resulting datetime, it is changed to the last valid day of the month.
Returns nil if any argument is nil.
Parameters
| Name | Type | Description | 
|---|---|---|
subject | 
datetime | The datetime to work with | 
year | 
long | The year to set |