effect-io-ai

Package: effect
Module: DateTime

DateTime.DateTime.PartsWithWeekday

Calendar and time components of a DateTime, including the weekday.

Details

month is one-based (1 for January through 12 for December), and weekDay follows JavaScript Date#getUTCDay numbering (0 for Sunday through 6 for Saturday).

Signature

export interface PartsWithWeekday {
    readonly millisecond: number
    readonly second: number
    readonly minute: number
    readonly hour: number
    readonly day: number
    readonly weekDay: number
    readonly month: number
    readonly year: number
  }

Source

Since v3.6.0