set day of month
Sets the day of month component of a datetime
(datetime subject, long day) -> datetime
Returns datetime subject
with the day of month component set to day
.
Returns nil
if any argument is nil
.
Parameters
Name | Type | Description |
---|---|---|
subject |
datetime | The datetime to work with |
day |
long | The day of month to set |