Takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time. |
|
|
Parameters
{Number} year – A year after 1900.
{Number} month – A number between 0 and 11. |
|
|
Sample
// The number of milliseconds in the first minute after 1970 January 1st.
application.output(Date.UTC(1970, 00, 01, 00, 01, 00, 00)); // prints: 60000.0
|
|
|
|
|
Takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time. |
|
|
Parameters
{Number} year – A year after 1900.
{Number} month – A number between 0 and 11.
{Number} date – A number between 1 and 31. |
|
|
Sample
// The number of milliseconds in the first minute after 1970 January 1st.
application.output(Date.UTC(1970, 00, 01, 00, 01, 00, 00)); // prints: 60000.0
|
|
|
|
|
Takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time. |
|
|
Parameters
{Number} year – A year after 1900.
{Number} month – A number between 0 and 11.
{Number} date – A number between 1 and 31.
{Number} hrs – A number between 0 and 23. |
|
|
Sample
// The number of milliseconds in the first minute after 1970 January 1st.
application.output(Date.UTC(1970, 00, 01, 00, 01, 00, 00)); // prints: 60000.0
|
|
|
|
|
(year, month, date, hrs, min) |
|
|
Takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time. |
|
|
Parameters
{Number} year – A year after 1900.
{Number} month – A number between 0 and 11.
{Number} date – A number between 1 and 31.
{Number} hrs – A number between 0 and 23.
{Number} min – A number between 0 and 59. |
|
|
Sample
// The number of milliseconds in the first minute after 1970 January 1st.
application.output(Date.UTC(1970, 00, 01, 00, 01, 00, 00)); // prints: 60000.0
|
|
|
|
|
(year, month, date, hrs, min, sec) |
|
|
Takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time. |
|
|
Parameters
{Number} year – A year after 1900.
{Number} month – A number between 0 and 11.
{Number} date – A number between 1 and 31.
{Number} hrs – A number between 0 and 23.
{Number} min – A number between 0 and 59.
{Number} sec – A number between 0 and 59. |
|
|
Sample
// The number of milliseconds in the first minute after 1970 January 1st.
application.output(Date.UTC(1970, 00, 01, 00, 01, 00, 00)); // prints: 60000.0
|
|
|
|
|
(year, month, date, hrs, min, sec, ms) |
|
|
Takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time. |
|
|
Parameters
{Number} year – A year after 1900.
{Number} month – A number between 0 and 11.
{Number} date – A number between 1 and 31.
{Number} hrs – A number between 0 and 23.
{Number} min – A number between 0 and 59.
{Number} sec – A number between 0 and 59.
{Number} ms – A number between 0 and 999. |
|
|
Sample
// The number of milliseconds in the first minute after 1970 January 1st.
application.output(Date.UTC(1970, 00, 01, 00, 01, 00, 00)); // prints: 60000.0
|
|
|
|
|
Gets the day of the week (sunday = 0). |
|
|
|
Gets the full year of the date. |
|
|
|
Gets the hours of the date. |
|
|
|
Gets the milliseconds of the date. |
|
|
|
Gets the minutes of the date. |
|
|
|
Gets the month of the date. |
|
|
|
Gets the seconds of the date. |
|
|
|
The value returned by the getTime method is the number of milliseconds since 1 January 1970 00:00:00. |
|
|
|
Gets the number of minutes between GMT and this date. |
|
|
Sample
date.getTimezoneOffset();
|
|
|
|
|
Gets the day in UTC time. |
|
|
|
Gets the full year in UTC time. |
|
|
|
Gets the hours in UTC time. |
|
|
|
Gets the milliseconds in UTC time. |
|
|
Sample
date.getUTCMilliseconds();
|
|
|
|
|
Gets the minutes in UTC time. |
|
|
|
Gets the month in UTC time. |
|
|
|
Gets the seconds in UTC time. |
|
|
|
Returns the milliseconds elapsed since 1 January 1970 00:00:00 UTC up until now. |
|
|
Sample
var timestamp = Date.now();
|
|
|
|
|
Takes a date string (such as "Dec 25, 1995") and returns the number of milliseconds since January 1, 1970, 00:00:00 UTC. |
|
|
Sample
var str = Date.parse("Wed, 09 Aug 1995 00:00:00 GMT");
application.output(str);
|
|
|
|
|
Sets the full year of the date. |
|
|
Sample
date.setFullYear(integer);
|
|
|
|
|
Sets the full year of the date. |
|
|
Sample
date.setFullYear(integer);
|
|
|
|
|
(yearValue, monthValue, dayValue) |
|
|
Sets the full year of the date. |
|
|
Sample
date.setFullYear(integer);
|
|
|
|
|
Sets the hours of the date. |
|
|
|
(hoursValue, minutesValue) |
|
|
Sets the hours of the date. |
|
|
|
(hoursValue, minutesValue, secondsValue) |
|
|
Sets the hours of the date. |
|
|
|
(hoursValue, minutesValue, secondsValue, msValue) |
|
|
Sets the hours of the date. |
|
|
|
Sets the milliseconds of the date. |
|
|
Sample
date.setMilliseconds(integer);
|
|
|
|
|
Sets the minutes of the date. |
|
|
Sample
date.setMinutes(integer);
|
|
|
|
|
(minutesValue, secondsValue) |
|
|
Sets the minutes of the date. |
|
|
Sample
date.setMinutes(integer);
|
|
|
|
|
(minutesValue, secondsValue, msValue) |
|
|
Sets the minutes of the date. |
|
|
Sample
date.setMinutes(integer);
|
|
|
|
|
Sets the month of the date. |
|
|
|
Sets the month of the date. |
|
|
|
Sets the seconds of the date. |
|
|
Sample
date.setSeconds(integer);
|
|
|
|
|
Sets the seconds of the date. |
|
|
Sample
date.setSeconds(integer);
|
|
|
|
|
Sets the milliseconds of the date. |
|
|
|
Sample
date.setUTCDate(integer);
|
|
|
|
|
Sets the year in UTC time. |
|
|
Sample
date.setUTCFullYear(integer);
|
|
|
|
|
Sets the year in UTC time. |
|
|
Sample
date.setUTCFullYear(integer);
|
|
|
|
|
(yearValue, monthValue, dayValue) |
|
|
Sets the year in UTC time. |
|
|
Sample
date.setUTCFullYear(integer);
|
|
|
|
|
Sets the hours in UTC time. |
|
|
Sample
date.setUTCHours(integer);
|
|
|
|
|
(hoursValue, minutesValue) |
|
|
Sets the hours in UTC time. |
|
|
Sample
date.setUTCHours(integer);
|
|
|
|
|
(hoursValue, minutesValue, secondsValue) |
|
|
Sets the hours in UTC time. |
|
|
Sample
date.setUTCHours(integer);
|
|
|
|
|
(hoursValue, minutesValue, secondsValue, msValue) |
|
|
Sets the hours in UTC time. |
|
|
Sample
date.setUTCHours(integer);
|
|
|
|
|
Sets the milliseconds in UTC time. |
|
|
Sample
date.setUTCMilliseconds(integer);
|
|
|
|
|
Sets the minutes in UTC time. |
|
|
Sample
date.setUTCMinutes(integer);
|
|
|
|
|
(minutesValue, secondsValue) |
|
|
Sets the minutes in UTC time. |
|
|
Sample
date.setUTCMinutes(integer);
|
|
|
|
|
(minutesValue, secondsValue, msValue) |
|
|
Sets the minutes in UTC time. |
|
|
Sample
date.setUTCMinutes(integer);
|
|
|
|
|
Sets the month in UTC time. |
|
|
Sample
date.setUTCMonth(integer);
|
|
|
|
|
Sets the month in UTC time. |
|
|
Sample
date.setUTCMonth(integer);
|
|
|
|
|
Sets the seconds in UTC time. |
|
|
Sample
date.setUTCSeconds(integer);
|
|
|
|
|
Sets the seconds in UTC time. |
|
|
Sample
date.setUTCSeconds(integer);
|
|
|
|
|
Returns a string version of the date. |
|
|
|
Returns a string version of the local time zone of the date. |
|
|
Sample
date.toLocaleDateString();
|
|
|
|
|
Returns a string version of the local time zone of the date. |
|
|
|
Returns a string version of the local time zone of the date. |
|
|
Sample
date.toLocaleTimeString();
|
|
|
|
|
Returns a string version of the date. |
|
|
|
Returns a string version of the UTC value of the date. |
|
|
|
Return integer milliseconds count |
|
|
|
|