Script Reference : Date

Creates a Date object that represents a single moment in time. Date objects are based on a time value that is the number of milliseconds intervals since January 1, 1601 (UTC).

Data Members
Name Type Description
value float Value representing the number of milliseconds since January 1, 1601 (UTC).
year integer The year. The valid values for this member are 1601 through 30827
month integer The month. This member can be one of the following values.
1 January
2 February
3 March
4 April
5 May
6 June
7 July
8 August
9 September
10 October
day integer The day of the month. The valid values for this member are 1 through 31.
dayOfWeek integer The day of the week. 1 is Sunday. Read Only.
hour integer The hour. The valid values for this member are 0 through 23.
minute integer The minute. The valid values for this member are 0 through 59.
second integer The second. The valid values for this member are 0 through 59.
milliseconds integer The millisecond. The valid values for this member are 0 through 999.

 

Constructors
Name Description
Date::Date() Creates a Date object and initializes it to current date and time.
Date::Date(number) Creates a Date object using number of milliseconds intervals since January 1, 1601

 

Methods
Name Return Type Description
+=, + Date Adds another date or number to this object
-=, - Date Subtracts another date or number from this object