IsoWeekYear constructor
IsoWeekYear(
- dynamic date, {
- dynamic timezone,
Creates $isoWeekYear
operator expression
Returns the year number in ISO 8601 format. The year starts with the Monday of week 1 and ends with the Sunday of the last week.
date
- The date to which the operator is applied.date
must be a valid expression that resolves to a Date, a Timestamp, or an ObjectID.- {timezone} - Optional. The timezone of the operation result. {timezone} must be a valid expression that resolves to a string formatted as either an Olson Timezone Identifier or a UTC Offset. If no timezone is provided, the result is displayed in UTC.
Implementation
IsoWeekYear(date, {timezone})
: super('isoWeekYear', AEObject({'date': date, 'timezone': timezone}));