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: *

public

month: *

public

year: *

Method Summary

Public Methods
public

toString(): *

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: * source

public month: * source

public year: * source

Public Methods

public toString(): * source

Return:

*