Home Reference Source
public class | source

Date

Represents an instant capturing the date, but not the time, nor the timezone. Created Date objects are frozen with Object.freeze() in constructor and thus immutable.

Static Method Summary

Static Public Methods
public static

fromStandardDate(standardDate: global.Date): Date

Create a Date object from the given standard JavaScript Date.

Constructor Summary

Public Constructor
public

constructor(year: Integer | number, month: Integer | number, day: Integer | number)

Member Summary

Public Members
public

day: Integer | number

The day.

public

month: Integer | number

The month.

public

year: Integer | number

The year.

Static Public Methods

public static fromStandardDate(standardDate: global.Date): Date source

Create a Date object from the given standard JavaScript Date. Hour, minute, second, millisecond and time zone offset components of the given date are ignored.

Params:

NameTypeAttributeDescription
standardDate global.Date

The standard JavaScript date to convert.

Return:

Date

New Date.

Public Constructors

public constructor(year: Integer | number, month: Integer | number, day: Integer | number) source

Params:

NameTypeAttributeDescription
year Integer | number

The year for the new local date.

month Integer | number

The month for the new local date.

day Integer | number

The day for the new local date.

Public Members

public day: Integer | number source

The day.

public month: Integer | number source

The month.

public year: Integer | number source

The year.