Method | Description | |
---|---|---|
Date ( ) |
Initializes a new instance of the Date class.
|
|
Date ( int year, int month, int date, int hours, int minutes, int seconds, int milliseconds ) |
Initializes a new instance of the Date class.
|
|
Date ( long milliseconds ) |
Initializes a new instance of the Date class.
|
|
Date ( string dateString ) |
Initializes a new instance of the Date class.
|
|
UTC ( ) : int |
Gets the number of milliseconds in a date string sine Jan 1, 1970, in universal time.
|
|
getDate ( ) : int |
Get the day of the month.
|
|
getDay ( ) : int |
Gets the day of the week.
|
|
getFullYear ( ) : int |
Gets the full year.
|
|
getHours ( ) : int |
Gets the hour.
|
|
getMilliseconds ( ) : int |
Gets the milliseconds.
|
|
getMinutes ( ) : int |
Gets the minutes.
|
|
getMonth ( ) : int |
Gets the month.
|
|
getSeconds ( ) : int |
Gets the seconds.
|
|
getTime ( ) : int |
Get the number of milliseconds since Jan 1, 1970.
|
|
getTimezoneOffset ( ) : int |
Gets the time difference between GMT and local time, in minutes.
|
|
getUTCDate ( ) : int |
Gets the day of the month, in universal time.
|
|
getUTCDay ( ) : int |
Gets the day of the week, in universal time.
|
|
getUTCFullYear ( ) : int |
Gets the year, in universal time.
|
|
getUTCHours ( ) : int |
Gets the hour, in universal time.
|
|
getUTCMilliseconds ( ) : int |
Gets the milliseconds, in universal time.
|
|
getUTCMinutes ( ) : int |
Gets the minutes, in universal time.
|
|
getUTCMonth ( ) : int |
Gets the month, in universal time.
|
|
getUTCSeconds ( ) : int |
Gets the seconds, in universal time.
|
|
now ( ) : int |
Gets the current date and time as an offset in milliseconds since Jan 1, 1970.
|
|
parse ( string dateString ) : int |
A string representing a date.
|
|
setDate ( int date ) : void |
Sets the day of the month, from 1-31.
|
|
setFullYear ( int year ) : void |
Sets the four digit year.
|
|
setHours ( int hour ) : void |
Sets the hour, from 0-23.
|
|
setMilliseconds ( int milliseconds ) : void |
Sets the milliseconds, from 0-999.
|
|
setMinutes ( int minute ) : void |
Set the minutes, from 0-59.
|
|
setMonth ( int month ) : void |
Sets the month, from 0-11.
|
|
setSeconds ( int second ) : void |
Sets the seconds, from 0-59.
|
|
setTime ( int millisecond ) : void |
Sets the time as an offset in milliseconds from Jan 1, 1970.
|
|
setUTCDate ( int month ) : void |
Sets the day of the month, in universal time, from 1-31.
|
|
setUTCFullYear ( int year ) : void |
Set the four digit year, in universal time.
|
|
setUTCHours ( int hour ) : void |
Sets the hour, in universal time, from 0-23.
|
|
setUTCMilliseconds ( int millisecond ) : void |
Sets the milliseconds, in universal time, from 0-999.
|
|
setUTCMinutes ( int minute ) : void |
Set the minutes, in universal time, from 0-59.
|
|
setUTCMonth ( int month ) : void |
Sets the month, in universal time, from 0-11.
|
|
setUTCSeconds ( int second ) : void |
Set the seconds, in universal time, from 0-59.
|
|
toDateString ( ) : string |
Gets the date portion of a date object as a string.
|
|
toLocaleDateString ( ) : string |
Gets the date portion of a date object as a string, using locale conventions.
|
|
toLocaleTimeString ( ) : string |
Gets the time portion of a date object as a string, using locale conventions.
|
|
toTimeString ( ) : string |
Gets the time portion of a date object as a string.
|
|
toUTCString ( ) : string |
Gets a date string, in universal time.
|
public Date ( int year, int month, int date, int hours, int minutes, int seconds, int milliseconds ) | ||
year | int | The year. |
month | int | The month. |
date | int | The date. |
hours | int | The hours. |
minutes | int | The minutes. |
seconds | int | The seconds. |
milliseconds | int | The milliseconds. |
public static parse ( string dateString ) : int | ||
dateString | string | |
return | int |
public setFullYear ( int year ) : void | ||
year | int | The year value. |
return | void |
public setMilliseconds ( int milliseconds ) : void | ||
milliseconds | int | The millisecond value. |
return | void |
public setMinutes ( int minute ) : void | ||
minute | int | The minute value. |
return | void |
public setMonth ( int month ) : void | ||
month | int | The month value. |
return | void |
public setSeconds ( int second ) : void | ||
second | int | The second value. |
return | void |
public setTime ( int millisecond ) : void | ||
millisecond | int | The millisecond value. |
return | void |
public setUTCDate ( int month ) : void | ||
month | int | The month value. |
return | void |
public setUTCFullYear ( int year ) : void | ||
year | int | The year value. |
return | void |
public setUTCHours ( int hour ) : void | ||
hour | int | The hour value. |
return | void |
public setUTCMilliseconds ( int millisecond ) : void | ||
millisecond | int | The millisecond value. |
return | void |
public setUTCMinutes ( int minute ) : void | ||
minute | int | The minute value. |
return | void |
public setUTCMonth ( int month ) : void | ||
month | int | The month value. |
return | void |
public setUTCSeconds ( int second ) : void | ||
second | int | The second value. |
return | void |