Child pages
  • Date
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Next »


Method Summary
Date UTC(year, month)
Takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time.
Date UTC(year, month, date)
Takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time.
Date UTC(year, month, date, hrs)
Takes comma-delimited date parameters and returns the number of milliseconds between January 1, 1970, 00:00:00, universal time and the specified time.
Date UTC(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.
Date UTC(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.
Date UTC(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.
Number getDate()
Gets the day of month.
Number getDay()
Gets the day of the week (sunday = 0).
Number getFullYear()
Gets the full year of the date.
Number getHours()
Gets the hours of the date.
Number getMilliseconds()
Gets the milliseconds of the date.
Number getMinutes()
Gets the minutes of the date.
Number getMonth()
Gets the month of the date.
Number getSeconds()
Gets the seconds of the date.
Number getTime()
The value returned by the getTime method is the number of milliseconds since 1 January 1970 00:00:00.
Number getTimezoneOffset()
Gets the number of minutes between GMT and this date.
Number getUTCDate()
Gets the UTC date.
Number getUTCDay()
Gets the day in UTC time.
Number getUTCFullYear()
Gets the full year in UTC time.
Number getUTCHours()
Gets the hours in UTC time.
Number getUTCMilliseconds()
Gets the milliseconds in UTC time.
Number getUTCMinutes()
Gets the minutes in UTC time.
Number getUTCMonth()
Gets the month in UTC time.
Number getUTCSeconds()
Gets the seconds in UTC time.
Date now()
Returns the milliseconds elapsed since 1 January 1970 00:00:00 UTC up until now.
Date parse()
Takes a date string (such as "Dec 25, 1995") and returns the number of milliseconds since January 1, 1970, 00:00:00 UTC.
void setDate(dayValue)
Sets the date.
void setFullYear(yearValue)
Sets the full year of the date.
void setFullYear(yearValue, monthValue)
Sets the full year of the date.
void setFullYear(yearValue, monthValue, dayValue)
Sets the full year of the date.
void setHours(hoursValue)
Sets the hours of the date.
void setHours(hoursValue, minutesValue)
Sets the hours of the date.
void setHours(hoursValue, minutesValue, secondsValue)
Sets the hours of the date.
void setHours(hoursValue, minutesValue, secondsValue, msValue)
Sets the hours of the date.
void setMilliseconds(millisecondsValue)
Sets the milliseconds of the date.
void setMinutes(minutesValue)
Sets the minutes of the date.
void setMinutes(minutesValue, secondsValue)
Sets the minutes of the date.
void setMinutes(minutesValue, secondsValue, msValue)
Sets the minutes of the date.
void setMonth(monthValue)
Sets the month of the date.
void setMonth(monthValue, dayValue)
Sets the month of the date.
void setSeconds(secondsValue)
Sets the seconds of the date.
void setSeconds(secondsValue, msValue)
Sets the seconds of the date.
void setTime(timeValue)
Sets the milliseconds of the date.
void setUTCDate(dayValue)
Sets the UTC date.
void setUTCFullYear(yearValue)
Sets the year in UTC time.
void setUTCFullYear(yearValue, monthValue)
Sets the year in UTC time.
void setUTCFullYear(yearValue, monthValue, dayValue)
Sets the year in UTC time.
void setUTCHours(hoursValue)
Sets the hours in UTC time.
void setUTCHours(hoursValue, minutesValue)
Sets the hours in UTC time.
void setUTCHours(hoursValue, minutesValue, secondsValue)
Sets the hours in UTC time.
void setUTCHours(hoursValue, minutesValue, secondsValue, msValue)
Sets the hours in UTC time.
void setUTCMilliseconds(millisecondsValue)
Sets the milliseconds in UTC time.
void setUTCMinutes(minutesValue)
Sets the minutes in UTC time.
void setUTCMinutes(minutesValue, secondsValue)
Sets the minutes in UTC time.
void setUTCMinutes(minutesValue, secondsValue, msValue)
Sets the minutes in UTC time.
void setUTCMonth(monthValue)
Sets the month in UTC time.
void setUTCMonth(monthValue, dayValue)
Sets the month in UTC time.
void setUTCSeconds(secondsValue)
Sets the seconds in UTC time.
void setUTCSeconds(secondsValue, msValue)
Sets the seconds in UTC time.
String toDateString()
Returns a string version of the date.
String toLocaleDateString()
Returns a string version of the local time zone of the date.
String toLocaleString()
Returns a string version of the local time zone of the date.
String toLocaleTimeString()
Returns a string version of the local time zone of the date.
String toTimeString()
Returns a string version of the date.
String toUTCString()
Returns a string version of the UTC value of the date.
Number valueOf()
Return integer milliseconds count

Method Details
UTC
Date UTC (year, month)
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.
Returns
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
UTC
Date UTC (year, month, date)
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.
Returns
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
UTC
Date UTC (year, month, date, hrs)
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.
Returns
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
UTC
Date UTC (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.
Returns
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
UTC
Date UTC (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.
Returns
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
UTC
Date UTC (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.
Returns
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
getDate
Number getDate ()
Gets the day of month.
Returns
Sample
date.getDate();
getDay
Number getDay ()
Gets the day of the week (sunday = 0).
Returns
Sample
date.getDay();
getFullYear
Number getFullYear ()
Gets the full year of the date.
Returns
Sample
date.getFullYear();
getHours
Number getHours ()
Gets the hours of the date.
Returns
Sample
date.getHours();
getMilliseconds
Number getMilliseconds ()
Gets the milliseconds of the date.
Returns
Sample
date.getMilliseconds();
getMinutes
Number getMinutes ()
Gets the minutes of the date.
Returns
Sample
date.getMinutes();
getMonth
Number getMonth ()
Gets the month of the date.
Returns
Sample
date.getMonth();
getSeconds
Number getSeconds ()
Gets the seconds of the date.
Returns
Sample
date.getSeconds();
getTime
Number getTime ()
The value returned by the getTime method is the number of milliseconds since 1 January 1970 00:00:00.
Returns
Sample
date.getTime();
getTimezoneOffset
Number getTimezoneOffset ()
Gets the number of minutes between GMT and this date.
Returns
Sample
date.getTimezoneOffset();
getUTCDate
Number getUTCDate ()
Gets the UTC date.
Returns
Sample
date.getUTCDate();
getUTCDay
Number getUTCDay ()
Gets the day in UTC time.
Returns
Sample
date.getUTCDay();
getUTCFullYear
Number getUTCFullYear ()
Gets the full year in UTC time.
Returns
Sample
date.getUTCFullYear();
getUTCHours
Number getUTCHours ()
Gets the hours in UTC time.
Returns
Sample
date.getUTCHours();
getUTCMilliseconds
Number getUTCMilliseconds ()
Gets the milliseconds in UTC time.
Returns
Sample
date.getUTCMilliseconds();
getUTCMinutes
Number getUTCMinutes ()
Gets the minutes in UTC time.
Returns
Sample
date.getUTCMinutes();
getUTCMonth
Number getUTCMonth ()
Gets the month in UTC time.
Returns
Sample
date.getUTCMonth();
getUTCSeconds
Number getUTCSeconds ()
Gets the seconds in UTC time.
Returns
Sample
date.getUTCSeconds();
now
Date now ()
Returns the milliseconds elapsed since 1 January 1970 00:00:00 UTC up until now.
Returns
Sample
var timestamp = Date.now();
parse
Date parse ()
Takes a date string (such as "Dec 25, 1995") and returns the number of milliseconds since January 1, 1970, 00:00:00 UTC.
Returns
Sample
var str = Date.parse("Wed, 09 Aug 1995 00:00:00 GMT");
application.output(str);
setDate
void setDate (dayValue)
Sets the date.
Parameters
{Number} dayValue
Returns
void
Sample
date.setDate(integer);
setFullYear
void setFullYear (yearValue)
Sets the full year of the date.
Parameters
{Number} yearValue
Returns
void
Sample
date.setFullYear(integer);
setFullYear
void setFullYear (yearValue, monthValue)
Sets the full year of the date.
Parameters
{Number} yearValue
{Number} monthValue
Returns
void
Sample
date.setFullYear(integer);
setFullYear
void setFullYear (yearValue, monthValue, dayValue)
Sets the full year of the date.
Parameters
{Number} yearValue
{Number} monthValue
{Number} dayValue
Returns
void
Sample
date.setFullYear(integer);
setHours
void setHours (hoursValue)
Sets the hours of the date.
Parameters
{Number} hoursValue
Returns
void
Sample
date.setHours(integer);
setHours
void setHours (hoursValue, minutesValue)
Sets the hours of the date.
Parameters
{Number} hoursValue
{Number} minutesValue
Returns
void
Sample
date.setHours(integer);
setHours
void setHours (hoursValue, minutesValue, secondsValue)
Sets the hours of the date.
Parameters
{Number} hoursValue
{Number} minutesValue
{Number} secondsValue
Returns
void
Sample
date.setHours(integer);
setHours
void setHours (hoursValue, minutesValue, secondsValue, msValue)
Sets the hours of the date.
Parameters
{Number} hoursValue
{Number} minutesValue
{Number} secondsValue
{Number} msValue
Returns
void
Sample
date.setHours(integer);
setMilliseconds
void setMilliseconds (millisecondsValue)
Sets the milliseconds of the date.
Parameters
{Number} millisecondsValue
Returns
void
Sample
date.setMilliseconds(integer);
setMinutes
void setMinutes (minutesValue)
Sets the minutes of the date.
Parameters
{Number} minutesValue
Returns
void
Sample
date.setMinutes(integer);
setMinutes
void setMinutes (minutesValue, secondsValue)
Sets the minutes of the date.
Parameters
{Number} minutesValue
{Number} secondsValue
Returns
void
Sample
date.setMinutes(integer);
setMinutes
void setMinutes (minutesValue, secondsValue, msValue)
Sets the minutes of the date.
Parameters
{Number} minutesValue
{Number} secondsValue
{Number} msValue
Returns
void
Sample
date.setMinutes(integer);
setMonth
void setMonth (monthValue)
Sets the month of the date.
Parameters
{Number} monthValue
Returns
void
Sample
date.setMonth(integr);
setMonth
void setMonth (monthValue, dayValue)
Sets the month of the date.
Parameters
{Number} monthValue
{Number} dayValue
Returns
void
Sample
date.setMonth(integr);
setSeconds
void setSeconds (secondsValue)
Sets the seconds of the date.
Parameters
{Number} secondsValue
Returns
void
Sample
date.setSeconds(integer);
setSeconds
void setSeconds (secondsValue, msValue)
Sets the seconds of the date.
Parameters
{Number} secondsValue
{Number} msValue
Returns
void
Sample
date.setSeconds(integer);
setTime
void setTime (timeValue)
Sets the milliseconds of the date.
Parameters
{Number} timeValue
Returns
void
Sample
date.setTime(integer);
setUTCDate
void setUTCDate (dayValue)
Sets the UTC date.
Parameters
{Number} dayValue
Returns
void
Sample
date.setUTCDate(integer);
setUTCFullYear
void setUTCFullYear (yearValue)
Sets the year in UTC time.
Parameters
{Number} yearValue
Returns
void
Sample
date.setUTCFullYear(integer);
setUTCFullYear
void setUTCFullYear (yearValue, monthValue)
Sets the year in UTC time.
Parameters
{Number} yearValue
{Number} monthValue
Returns
void
Sample
date.setUTCFullYear(integer);
setUTCFullYear
void setUTCFullYear (yearValue, monthValue, dayValue)
Sets the year in UTC time.
Parameters
{Number} yearValue
{Number} monthValue
{Number} dayValue
Returns
void
Sample
date.setUTCFullYear(integer);
setUTCHours
void setUTCHours (hoursValue)
Sets the hours in UTC time.
Parameters
{Number} hoursValue
Returns
void
Sample
date.setUTCHours(integer);
setUTCHours
void setUTCHours (hoursValue, minutesValue)
Sets the hours in UTC time.
Parameters
{Number} hoursValue
{Number} minutesValue
Returns
void
Sample
date.setUTCHours(integer);
setUTCHours
void setUTCHours (hoursValue, minutesValue, secondsValue)
Sets the hours in UTC time.
Parameters
{Number} hoursValue
{Number} minutesValue
{Number} secondsValue
Returns
void
Sample
date.setUTCHours(integer);
setUTCHours
void setUTCHours (hoursValue, minutesValue, secondsValue, msValue)
Sets the hours in UTC time.
Parameters
{Number} hoursValue
{Number} minutesValue
{Number} secondsValue
{Number} msValue
Returns
void
Sample
date.setUTCHours(integer);
setUTCMilliseconds
void setUTCMilliseconds (millisecondsValue)
Sets the milliseconds in UTC time.
Parameters
{Number} millisecondsValue
Returns
void
Sample
date.setUTCMilliseconds(integer);
setUTCMinutes
void setUTCMinutes (minutesValue)
Sets the minutes in UTC time.
Parameters
{Number} minutesValue
Returns
void
Sample
date.setUTCMinutes(integer);
setUTCMinutes
void setUTCMinutes (minutesValue, secondsValue)
Sets the minutes in UTC time.
Parameters
{Number} minutesValue
{Number} secondsValue
Returns
void
Sample
date.setUTCMinutes(integer);
setUTCMinutes
void setUTCMinutes (minutesValue, secondsValue, msValue)
Sets the minutes in UTC time.
Parameters
{Number} minutesValue
{Number} secondsValue
{Number} msValue
Returns
void
Sample
date.setUTCMinutes(integer);
setUTCMonth
void setUTCMonth (monthValue)
Sets the month in UTC time.
Parameters
{Number} monthValue
Returns
void
Sample
date.setUTCMonth(integer);
setUTCMonth
void setUTCMonth (monthValue, dayValue)
Sets the month in UTC time.
Parameters
{Number} monthValue
{Number} dayValue
Returns
void
Sample
date.setUTCMonth(integer);
setUTCSeconds
void setUTCSeconds (secondsValue)
Sets the seconds in UTC time.
Parameters
{Number} secondsValue
Returns
void
Sample
date.setUTCSeconds(integer);
setUTCSeconds
void setUTCSeconds (secondsValue, msValue)
Sets the seconds in UTC time.
Parameters
{Number} secondsValue
{Number} msValue
Returns
void
Sample
date.setUTCSeconds(integer);
toDateString
String toDateString ()
Returns a string version of the date.
Returns
Sample
date.toDateString();
toLocaleDateString
String toLocaleDateString ()
Returns a string version of the local time zone of the date.
Returns
Sample
date.toLocaleDateString();
toLocaleString
String toLocaleString ()
Returns a string version of the local time zone of the date.
Returns
Sample
date.toLocaleString();
toLocaleTimeString
String toLocaleTimeString ()
Returns a string version of the local time zone of the date.
Returns
Sample
date.toLocaleTimeString();
toTimeString
String toTimeString ()
Returns a string version of the date.
Returns
Sample
date.toTimeString();
toUTCString
String toUTCString ()
Returns a string version of the UTC value of the date.
Returns
Sample
date.toUTCString();
valueOf
Number valueOf ()
Return integer milliseconds count
Returns
Sample
date.valueOf(integer);

  • No labels