Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Date

Index

Constructors

constructor

Methods

addDays

  • addDays(days: number): void
  • Adds days to given UTC date

    Parameters

    • days: number

    Returns void

addHours

  • addHours(hours: number): void
  • Adds hours to given UTC date

    Parameters

    • hours: number

    Returns void

addMinutes

  • addMinutes(minutes: number): void
  • Adds minutes to given UTC date

    Parameters

    • minutes: number

    Returns void

addSeconds

  • addSeconds(seconds: number): void
  • Adds seconds to given UTC date

    Parameters

    • seconds: number

    Returns void

getTime

  • getTime(): number
  • Converts the given UTC date into miliseconds.

    Returns number

getUTCData

  • getUTCData(): number
  • Returns day of month from given UTC date.

    Returns number

getUTCDay

  • getUTCDay(): number
  • Returns day of week from given UTC date.

    Returns number

getUTCDayOfYear

  • getUTCDayOfYear(): number
  • Returns day of year from given UTC date.

    Returns number

getUTCFullYear

  • getUTCFullYear(): number
  • Returns year from given UTC date.

    Returns number

getUTCHours

  • getUTCHours(): number
  • Returns hour from given UTC date.

    Returns number

getUTCMilliseconds

  • getUTCMilliseconds(): number
  • Returns milliseconds from given UTC date.

    Returns number

getUTCMinutes

  • getUTCMinutes(): number
  • Returns minutes from given UTC date.

    Returns number

getUTCMonths

  • getUTCMonths(): number
  • Returns month from given UTC date.

    Returns number

getUTCSeconds

  • getUTCSeconds(): number
  • Returns seconds from given UTC date.

    Returns number

getUTCWeekOfYear

  • getUTCWeekOfYear(): number
  • Returns week of year from given UTC date.

    Returns number

Static create

  • create(year: number, month: number, day: number, hours: number, minutes: number, seconds: number, milliseconds: number): Date
  • create(time: number): Date
  • Creates a new UTC date

    Parameters

    • year: number
    • month: number
    • day: number
    • hours: number
    • minutes: number
    • seconds: number
    • milliseconds: number

    Returns Date

  • Converts the given date in miliseconds into the UTC date format.

    Parameters

    • time: number

    Returns Date

Static now

  • Returns current UTC date.

    Returns Date

Generated using TypeDoc