Javascript Date
From Yate Documentation
(Difference between revisions)
(→Methods) |
(→Constructor) |
||
Line 21: | Line 21: | ||
* second - Integer value representing the second segment of a time. | * second - Integer value representing the second segment of a time. | ||
− | * millisecond - Integer value representing the millisecond segment of a time. | + | * millisecond - Integer value representing the millisecond segment of a time. |
+ | |||
+ | If no arguments are provided, the constructor creates a JavaScript Date object for the current date and time according to system settings. | ||
==Methods== | ==Methods== |
Revision as of 17:17, 26 February 2014
Date class in Yate's Javascript implementation.
Constructor
new Date(); new Date(value); new Date(year, month [, day, hour, minute, second, millisecond]);
Where:
- value - Integer value representing the number of milliseconds since 1 January 1970 00:00:00 UTC (Unix Epoch).
- year - Integer value representing the year. Values from 0 to 99 map to the years 1900 to 1999.
- month - Integer value representing the month, beginning with 0 for January to 11 for December.
- day - Integer value representing the day of the month.
- hour - Integer value representing the hour of the day.
- minute - Integer value representing the minute segment of a time.
- second - Integer value representing the second segment of a time.
- millisecond - Integer value representing the millisecond segment of a time.
If no arguments are provided, the constructor creates a JavaScript Date object for the current date and time according to system settings.
Methods
- getDate
- getDay
- getFullYear
- getHours
- getMilliseconds
- getMinutes
- getMonth
- getSeconds
- getTime
- getTimezoneOffset
- getUTCDate
- getUTCDay
- getUTCFullYear
- getUTCHours
- getUTCMilliseconds
- getUTCMinutes
- getUTCMonth
- getUTCSeconds