Class Date

Object
  extended by Date

public class Date
extends Object

Lets you work with dates and times.


Method Summary
 Number getDate()
          Returns the day of the month for the specified date according to local time.
 Number getDay()
          Returns the day of the week for the specified date according to local time.
 Number getFullYear()
          Returns the year of the specified date according to local time.
 Number getHours()
          Returns the hour in the specified date according to local time.
 Number getMilliseconds()
          Returns the milliseconds in the specified date according to local time.
 Number getMinutes()
          Returns the minutes in the specified date according to local time.
 Number getMonth()
          Returns the month in the specified date according to local time.
 Number getSeconds()
          Returns the seconds in the specified date according to local time.
 Number getTime()
          Returns the numeric value corresponding to the time for the specified date according to local time.
 Number getTimezoneOffset()
          Returns the time-zone offset in minutes for the current locale.
 Number parse(String dateString)
          Returns the number of milliseconds in a date string since January 1, 1970, 00:00:00, local time.
 void setDate(Number date)
          Sets the day of the month for a specified date according to local time.
 void setFullYear(Number year)
          Sets the full year for a specified date according to local time.
 void setHours(Number hours)
          Sets the hours for a specified date according to local time.
 void setMilliseconds(Number millis)
          Sets the milliseconds for a specified date according to local time.
 void setMinutes(Number minutes)
          Sets the minutes for a specified date according to local time.
 void setMonth(Number month)
          Sets the month for a specified date according to local time.
 void setSeconds(Number seconds)
          Sets the seconds for a specified date according to local time.
 
Methods inherited from class Object
toString
 

Method Detail

getSeconds

public Number getSeconds()
Returns the seconds in the specified date according to local time.


getFullYear

public Number getFullYear()
Returns the year of the specified date according to local time.


getHours

public Number getHours()
Returns the hour in the specified date according to local time.


getDay

public Number getDay()
Returns the day of the week for the specified date according to local time.


getTimezoneOffset

public Number getTimezoneOffset()
Returns the time-zone offset in minutes for the current locale.


setSeconds

public void setSeconds(Number seconds)
Sets the seconds for a specified date according to local time.

Parameters:
seconds -

setMonth

public void setMonth(Number month)
Sets the month for a specified date according to local time.

Parameters:
month -

setMinutes

public void setMinutes(Number minutes)
Sets the minutes for a specified date according to local time.

Parameters:
minutes -

setDate

public void setDate(Number date)
Sets the day of the month for a specified date according to local time.

Parameters:
date -

getDate

public Number getDate()
Returns the day of the month for the specified date according to local time.


setFullYear

public void setFullYear(Number year)
Sets the full year for a specified date according to local time.

Parameters:
year -

getTime

public Number getTime()
Returns the numeric value corresponding to the time for the specified date according to local time.


setHours

public void setHours(Number hours)
Sets the hours for a specified date according to local time.

Parameters:
hours -

setMilliseconds

public void setMilliseconds(Number millis)
Sets the milliseconds for a specified date according to local time.

Parameters:
millis -

getMonth

public Number getMonth()
Returns the month in the specified date according to local time.


parse

public Number parse(String dateString)
Returns the number of milliseconds in a date string since January 1, 1970, 00:00:00, local time.

Parameters:
dateString - A string representing a date.

getMilliseconds

public Number getMilliseconds()
Returns the milliseconds in the specified date according to local time.


getMinutes

public Number getMinutes()
Returns the minutes in the specified date according to local time.