Millisecond constructor

Millisecond(
  1. dynamic date,
  2. {dynamic timezone}
)

Creates $millisecond operator expression

Returns the millisecond portion of a date as an integer between 0 and 999.

  • 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

Millisecond(date, {timezone})
    : super('millisecond', AEObject({'date': date, 'timezone': timezone}));