Millwork
    Preparing search index...

    The TZDate that the zoned codec gives. It is frozen, and each setter throws.

    Hierarchy

    • TZDate
      • FrozenTZDate
    Index
    • Constructs a new TZDate instance in the system time zone.

      Returns FrozenTZDate

    • Constructs a new TZDate instance from the date time string and time zone.

      Parameters

      • dateStr: string

        Date time string to create a new instance from

      • OptionaltimeZone: string

        Time zone name (IANA or UTC offset)

      Returns FrozenTZDate

    • Constructs a new TZDate instance from the date object and time zone.

      Parameters

      • date: Date

        Date object to create a new instance from

      • OptionaltimeZone: string

        Time zone name (IANA or UTC offset)

      Returns FrozenTZDate

    • Constructs a new TZDate instance from the Unix timestamp in milliseconds and time zone.

      Parameters

      • timestamp: number

        Unix timestamp in milliseconds to create a new instance from

      • OptionaltimeZone: string

        Time zone name (IANA or UTC offset)

      Returns FrozenTZDate

    • Constructs a new TZDate instance from the year, month, and time zone.

      Parameters

      • year: number

        Year

      • month: number

        Month (0-11)

      • OptionaltimeZone: string

        Time zone name (IANA or UTC offset)

      Returns FrozenTZDate

    • Constructs a new TZDate instance from the year, month, date and time zone.

      Parameters

      • year: number

        Year

      • month: number

        Month (0-11)

      • date: number

        Date

      • OptionaltimeZone: string

        Time zone name (IANA or UTC offset)

      Returns FrozenTZDate

    • Constructs a new TZDate instance from the year, month, date, hours and time zone.

      Parameters

      • year: number

        Year

      • month: number

        Month (0-11)

      • date: number

        Date

      • hours: number

        Hours

      • OptionaltimeZone: string

        Time zone name (IANA or UTC offset)

      Returns FrozenTZDate

    • Constructs a new TZDate instance from the year, month, date, hours, minutes and time zone.

      Parameters

      • year: number

        Year

      • month: number

        Month (0-11)

      • date: number

        Date

      • hours: number

        Hours

      • minutes: number

        Minutes

      • OptionaltimeZone: string

        Time zone name (IANA or UTC offset)

      Returns FrozenTZDate

    • Constructs a new TZDate instance from the year, month, date, hours, minutes, seconds and time zone.

      Parameters

      • year: number

        Year

      • month: number

        Month (0-11)

      • date: number

        Date

      • hours: number

        Hours

      • minutes: number

        Minutes

      • seconds: number

        Seconds

      • OptionaltimeZone: string

        Time zone name (IANA or UTC offset)

      Returns FrozenTZDate

    • Constructs a new TZDate instance from the year, month, date, hours, minutes, seconds, milliseconds and time zone.

      Parameters

      • year: number

        Year

      • month: number

        Month (0-11)

      • date: number

        Date

      • hours: number

        Hours

      • minutes: number

        Minutes

      • seconds: number

        Seconds

      • milliseconds: number

        Milliseconds

      • OptionaltimeZone: string

        Time zone name (IANA or UTC offset)

      Returns FrozenTZDate

    timeZone: string | undefined

    The current time zone of the date.

    • Creates a new TZDate instance in the current instance time zone and the specified date time value.

      Parameters

      • date: string | number | Date

        Date value to create a new instance from

      Returns TZDate

    • Creates a new TZDate instance in the given time zone.

      Parameters

      • timeZone: string

      Returns TZDate

    • Creates a new TZDate instance in the given time zone.

      Parameters

      • tz: string

        Time zone name (IANA or UTC offset)

      Returns TZDate

    • Creates a new TZDate instance in the given time zone from the Unix timestamp in milliseconds.

      Parameters

      • tz: string

        Time zone name (IANA or UTC offset)

      • timestamp: number

        Unix timestamp in milliseconds

      Returns TZDate

    • Creates a new TZDate instance in the given time zone from the date time string.

      Parameters

      • tz: string

        Time zone name (IANA or UTC offset)

      • dateStr: string

        Date time string

      Returns TZDate

    • Creates a new TZDate instance in the given time zone from the date object.

      Parameters

      • tz: string

        Time zone name (IANA or UTC offset)

      • date: Date

        Date object

      Returns TZDate

    • Creates a new TZDate instance in the given time zone from the year and month.

      Parameters

      • tz: string

        Time zone name (IANA or UTC offset)

      • year: number

        Year

      • month: number

        Month (0-11)

      Returns TZDate

    • Creates a new TZDate instance in the given time zone from the year, month and date.

      Parameters

      • tz: string

        Time zone name (IANA or UTC offset)

      • year: number

        Year

      • month: number

        Month (0-11)

      • date: number

        Date

      Returns TZDate

    • Creates a new TZDate instance in the given time zone from the year, month, date and hours.

      Parameters

      • tz: string

        Time zone name (IANA or UTC offset)

      • year: number

        Year

      • month: number

        Month (0-11)

      • date: number

        Date

      • hours: number

        Hours

      Returns TZDate

    • Creates a new TZDate instance in the given time zone from the year, month, date, hours and minutes.

      Parameters

      • tz: string

        Time zone name (IANA or UTC offset)

      • year: number

        Year

      • month: number

        Month (0-11)

      • date: number

        Date

      • hours: number

        Hours

      • minutes: number

        Minutes

      Returns TZDate

    • Creates a new TZDate instance in the given time zone from the year, month, date, hours, minutes and seconds.

      Parameters

      • tz: string

        Time zone name (IANA or UTC offset)

      • year: number

        Year

      • month: number

        Month (0-11)

      • date: number

        Date

      • hours: number

        Hours

      • minutes: number

        Minutes

      • seconds: number

        Seconds

      Returns TZDate

    • Creates a new TZDate instance in the given time zone from the year, month, date, hours, minutes, seconds and milliseconds.

      Parameters

      • tz: string

        Time zone name (IANA or UTC offset)

      • year: number

        Year

      • month: number

        Month (0-11)

      • date: number

        Date

      • hours: number

        Hours

      • minutes: number

        Minutes

      • seconds: number

        Seconds

      • milliseconds: number

        Milliseconds

      Returns TZDate