|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectDate
public class Date
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 |
|---|
public Number getSeconds()
public Number getFullYear()
public Number getHours()
public Number getDay()
public Number getTimezoneOffset()
public void setSeconds(Number seconds)
seconds - public void setMonth(Number month)
month - public void setMinutes(Number minutes)
minutes - public void setDate(Number date)
date - public Number getDate()
public void setFullYear(Number year)
year - public Number getTime()
public void setHours(Number hours)
hours - public void setMilliseconds(Number millis)
millis - public Number getMonth()
public Number parse(String dateString)
dateString - A string representing a date.public Number getMilliseconds()
public Number getMinutes()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||