week of year
the week of year of a datetime
(datetime subject) -> long
Returns the week of year for the given datetime. The ISO-8601 definition of weeks is used, where a week starts on Monday and the first week of a year has a minimum of 4 days.
Returns nil
if given datetime is nil
Parameters
Name | Type | Description |
---|---|---|
subject |
datetime | The datetime to work with |