Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DateTime

Hierarchy

  • DateTime

Index

Constructors

  • new DateTime(millisecondsSinceEpoch?: number): DateTime
  • Parameters

    • Optional millisecondsSinceEpoch: number

    Returns DateTime

Accessors

  • get Day(): number
  • 1 - 31

    Returns number

  • 0 for Sunday, 1 for Monday, 2 for Tuesday, and so on.

    Returns DayOfWeek

  • get Hours(): number
  • 0 - 23

    Returns number

  • get Milliseconds(): number
  • 0 - 999

    Returns number

  • get Minutes(): number
  • 0 - 59

    Returns number

  • get Month(): number
  • 1 - 12

    Returns number

  • get Seconds(): number
  • 0 - 59

    Returns number

  • get WeekOfYear(): number
  • ISO

    Returns number

  • get Year(): number
  • Returns number

Methods

  • Parameters

    • value: number

    Returns DateTime

  • Parameters

    Returns DateTime

  • Returns DateTime

  • Parameters

    Returns number

  • Parameters

    Returns number

  • Parameters

    Returns boolean

  • Parameters

    • value: number

    Returns DateTime

  • Parameters

    Returns DateTime

  • ToDate(): Date
  • Returns Date

  • ToLocalString(): string
  • ToLocalString(format?: string): string
  • Returns string

  • Parameters

    • Optional format: string

    Returns string

  • ToString(): string
  • ToString(format?: string, timezoneOffset?: number): string
  • Returns string

  • Parameters

    • Optional format: string
    • Optional timezoneOffset: number

    Returns string

  • Parameters

    • date: Date

    Returns DateTime

  • Parameters

    • date: Date
    • timezoneOffset: number

    Returns DateTime

Generated using TypeDoc