Resin 1.1
FAQ
Reference
JavaDoc
Demo
Java Tutorial
Getting Started
Configuration
Topics
JSP
XTP/XSL
JavaScript
JS Library
Core Library
File Library
Servlet Library
Database Library
XML Library
Global
Object
Array
Boolean
Date
Function
Math
Number
Regexp
String
The Date Object
Date Constructor
Date() | Returns a new date object for the current time.
Date(ms) | Returns a new date object for the represented by the number in milliseconds from the epoch, January 1, 1970 12:00 GMT.
Date(year, month, day, hour, minute, second, ms) | Returns a new date object with the given time in the current time zone. Missing parameters are set to 0, so `Date(1999, 12)` will be midnight December 1.
Date.UTC() | Returns the current time in milliseconds from the epoch GMT as a number.
Date.UTC(ms) | Returns ms.
Date.UTC(year, month, day, hour, minute, second, ms) | The time in milliseconds from the epoch for the given time in GMT.
Date.parseDate(date) | Parses the date given as a string and returns the time in milliseconds.
Date Instance
getTime() | Returns the time in milliseconds GMT from the epoch.
toUTCString() | Returns a string representation of the date.
toLocaleString() | Returns a locale-specific string representation of the date.
getYear() | Returns the 4-digit year in the local time zone.
getUTCYear() | Returns the 4-digit year GMT.
getMonth() | Returns the month in the local time zone, where 1 is January.
getUTCMonth() | Returns the month GMT, where 1 is January.
getDay() | Returns the day of month in the local time zone.
getUTCDay() | Returns the day of month GMT.
getHour() | Returns the hour in the local time zone.
getUTCHour() | Returns the hour GMT.
getMinute() | Returns the minutes in the local time zone.
getUTCMinute() | Returns the minutes GMT.
getSecond() | Returns the seconds in the local time zone.
getUTCSecond() | Returns the seconds GMT.
getMilliseconds() | Returns the milliseconds in the local time zone.
getUTCMilliseconds() | Returns the milliseconds GMT.
getTimezoneOffset() | Returns the timezone offset for the local time zone.
setYear(year, month, day) | Sets the year, month, day.
setUTCYear(year, month, day) | Sets the year, month, day.
setMonth(month, day) | Sets the month, day.
setUTCMonth(month, day) | Sets the month, day.
setDay(day) | Sets the day.
setUTCDay(day) | Sets the day.
setHours(hours, minutes, seconds, ms) | Sets the hours, minutes, seconds, and milliseconds.
setUTCHours(hours, minutes, seconds, ms) | Sets the hours, minutes, seconds, and milliseconds.
setMinutes(minutes, seconds, ms) | Sets the minute, seconds, and milliseconds.
setUTCMinutes(minutes, seconds, ms) | Sets the minutes, seconds, and milliseconds.
setSeconds(seconds, ms) | Sets the seconds and milliseconds.
setUTCSeconds(seconds, ms) | Sets the seconds and milliseconds.
setMilliseconds(ms) | Sets the milliseconds.
setUTCMilliseconds(ms) | Sets the milliseconds.
Date Constructor
### Date()
Returns a new date object for the current time.
### Date(ms)
Returns a new date object for the represented by the number in milliseconds from the epoch, January 1, 1970 12:00 GMT.
### Date(year, month, day, hour, minute, second, ms)
Returns a new date object with the given time in the current time zone. Missing parameters are set to 0, so `Date(1999, 12)` will be midnight December 1.
### Date.UTC()
Returns the current time in milliseconds from the epoch GMT as a number.
### Date.UTC(ms)
Returns ms.
### Date.UTC(year, month, day, hour, minute, second, ms)
The time in milliseconds from the epoch for the given time in GMT.
### Date.parseDate(date)
Parses the date given as a string and returns the time in milliseconds.
Date Instance
### getTime()
Returns the time in milliseconds GMT from the epoch.
### toUTCString()
Returns a string representation of the date.
### toLocaleString()
Returns a locale-specific string representation of the date.
### getYear()
Returns the 4-digit year in the local time zone.
### getUTCYear()
Returns the 4-digit year GMT.
### getMonth()
Returns the month in the local time zone, where 1 is January.
### getUTCMonth()
Returns the month GMT, where 1 is January.
### getDay()
Returns the day of month in the local time zone.
### getUTCDay()
Returns the day of month GMT.
### getHour()
Returns the hour in the local time zone.
### getUTCHour()
Returns the hour GMT.
### getMinute()
Returns the minutes in the local time zone.
### getUTCMinute()
Returns the minutes GMT.
### getSecond()
Returns the seconds in the local time zone.
### getUTCSecond()
Returns the seconds GMT.
### getMilliseconds()
Returns the milliseconds in the local time zone.
### getUTCMilliseconds()
Returns the milliseconds GMT.
### getTimezoneOffset()
Returns the timezone offset for the local time zone.
### setYear(year, month, day)
Sets the year, month, day.
### setUTCYear(year, month, day)
Sets the year, month, day.
### setMonth(month, day)
Sets the month, day.
### setUTCMonth(month, day)
Sets the month, day.
### setDay(day)
Sets the day.
### setUTCDay(day)
Sets the day.
### setHours(hours, minutes, seconds, ms)
Sets the hours, minutes, seconds, and milliseconds.
### setUTCHours(hours, minutes, seconds, ms)
Sets the hours, minutes, seconds, and milliseconds.
### setMinutes(minutes, seconds, ms)
Sets the minute, seconds, and milliseconds.
### setUTCMinutes(minutes, seconds, ms)
Sets the minutes, seconds, and milliseconds.
### setSeconds(seconds, ms)
Sets the seconds and milliseconds.
### setUTCSeconds(seconds, ms)
Sets the seconds and milliseconds.
### setMilliseconds(ms)
Sets the milliseconds.
### setUTCMilliseconds(ms)
Sets the milliseconds.
Boolean |  | Function
Copyright © 1998-2000 Caucho Technology. All rights reserved. Last modified: Thu, 16 Sep 1999 14:56:48 -0700 (PDT)