|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sgx.j2s.html.Date
public class Date
javascript native Date object representation
Constructor Summary | |
---|---|
private |
Date()
use JsUtils.newDate() for creating Date Objects |
Method Summary | |
---|---|
int |
getDate()
Returns the day of the month from a Date object (from 1-31) 1 3 |
int |
getDay()
Returns the day of the week from a Date object (from 0-6) 1 3 |
int |
getFullYear()
Returns the year, as a four-digit number, from a Date object 1 4 |
int |
getHours()
Returns the hour of a Date object (from 0-23) 1 3 |
int |
getMilliseconds()
Returns the milliseconds of a Date object (from 0-999) 1 4 |
int |
getMinutes()
Returns the minutes of a Date object (from 0-59) 1 3 |
int |
getMonth()
Returns the month from a Date object (from 0-11) 1 3 |
int |
getSeconds()
Returns the seconds of a Date object (from 0-59) 1 3 |
int |
getTime()
Returns the number of milliseconds since midnight Jan 1, 1970 1 3 |
int |
getTimezoneOffset()
Returns the difference in minutes between local time and Greenwich Mean Time (GMT) 1 3 |
int |
getUTCDate()
Returns the day of the month from a Date object according to universal time (from 1-31) 1 4 |
int |
getUTCDay()
Returns the day of the week from a Date object according to universal time (from 0-6) 1 4 |
int |
getUTCFullYear()
Returns the four-digit year from a Date object according to universal time 1 4 |
int |
getUTCHours()
Returns the hour of a Date object according to universal time (from 0-23) 1 4 |
int |
getUTCMilliseconds()
Returns the milliseconds of a Date object according to universal time (from 0-999) 1 4 |
int |
getUTCMinutes()
Returns the minutes of a Date object according to universal time (from 0-59) 1 4 |
int |
getUTCMonth()
Returns the month from a Date object according to universal time (from 0-11) 1 4 |
int |
getUTCSeconds()
Returns the seconds of a Date object according to universal time (from 0-59) 1 4 |
int |
parse(java.lang.String s)
Takes a date string and returns the number of milliseconds since midnight of January 1, 1970 1 3 |
void |
setDate(int d)
Sets the day of the month in a Date object (from 1-31) 1 3 |
void |
setFullYear(int y)
Sets the year in a Date object (four digits) 1 4 |
void |
setHours()
Sets the hour in a Date object (from 0-23) 1 3 |
void |
setMilliseconds()
Sets the milliseconds in a Date object (from 0-999) 1 4 |
void |
setMinutes()
Set the minutes in a Date object (from 0-59) 1 3 |
void |
setMonth()
Sets the month in a Date object (from 0-11) 1 3 |
void |
setSeconds()
|
void |
setTime(int t)
Calculates a date and time by adding or subtracting a specified number of milliseconds to/from midnight January 1, 1970 1 3 |
void |
setUTCDate(int t)
|
void |
setUTCFullYear(int y)
Sets the year in a Date object according to universal time (four digits) 1 4 |
void |
setUTCHours(int h)
Sets the hour in a Date object according to universal time (from 0-23) 1 4 |
void |
setUTCMilliseconds(int t)
Sets the milliseconds in a Date object according to universal time (from 0-999) 1 4 |
void |
setUTCMinutes(int t)
Set the minutes in a Date object according to universal time (from 0-59) 1 4 |
void |
setUTCMonth(int t)
Sets the month in a Date object according to universal time (from 0-11) 1 4 |
void |
setUTCSeconds(int t)
Set the seconds in a Date object according to universal time (from 0-59) 1 4 |
void |
setYear(int t)
Sets the year in the Date object (two or four digits). |
java.lang.String |
toDateString()
Returns the date portion of a Date object in readable form |
java.lang.String |
toGMTString()
Converts a Date object, according to Greenwich time, to a string. |
java.lang.String |
toLocaleDateString()
Converts a Date object, according to local time, to a string and returns the date portion 1 4 |
java.lang.String |
toLocaleString()
Converts a Date object, according to local time, to a string 1 3 |
java.lang.String |
toLocaleTimeString()
Converts a Date object, according to local time, to a string and returns the time portion 1 4 |
java.lang.String |
toSource()
Represents the source code of an object 1 - |
java.lang.String |
toString()
Converts a Date object to a string 1 4 |
java.lang.String |
toTimeString()
Returns the time portion of a Date object in readable form |
java.lang.String |
toUTCString()
Converts a Date object, according to universal time, to a string 1 4 |
int |
UTC(Date d)
Takes a date and returns the number of milliseconds since midnight of January 1, 1970 according to universal time 1 3 |
java.lang.Object |
valueOf()
Returns the primitive value of a Date object 1 4 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
private Date()
Method Detail |
---|
public int getDate()
public int getDay()
public int getFullYear()
public int getHours()
public int getMilliseconds()
public int getMinutes()
public int getMonth()
public int getSeconds()
public int getTime()
public int getTimezoneOffset()
public int getUTCDate()
public int getUTCDay()
public int getUTCMonth()
public int getUTCFullYear()
public int getUTCHours()
public int getUTCMinutes()
public int getUTCSeconds()
public int getUTCMilliseconds()
public int parse(java.lang.String s)
public void setDate(int d)
public void setFullYear(int y)
public void setHours()
public void setMilliseconds()
public void setMinutes()
public void setMonth()
public void setSeconds()
public void setTime(int t)
public void setUTCDate(int t)
public void setUTCMonth(int t)
public void setUTCFullYear(int y)
public void setUTCHours(int h)
public void setUTCMinutes(int t)
public void setUTCSeconds(int t)
public void setUTCMilliseconds(int t)
public void setYear(int t)
public java.lang.String toDateString()
public java.lang.String toGMTString()
public java.lang.String toLocaleDateString()
public java.lang.String toLocaleTimeString()
public java.lang.String toLocaleString()
public java.lang.String toSource()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toTimeString()
public java.lang.String toUTCString()
public int UTC(Date d)
public java.lang.Object valueOf()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |