Javascript Date

From Yate Documentation
(Difference between revisions)
Jump to: navigation, search
(Created page with "Date class in Yate's Javascript implementation. ==Constructor== new Date(); new Date(value); new Date(year, month [, day, hour, minute, second, millisecond]); Where: * va...")
 
(Methods)
Line 25: Line 25:
 
==Methods==
 
==Methods==
  
*   'getDate'
+
* '''getDate'''
*   'getDay'
+
* '''getDay'''
*   'getFullYear'
+
* '''getFullYear'''
*   'getHours'
+
* '''getHours'''
*   'getMilliseconds'
+
* '''getMilliseconds'''
*   'getMinutes'
+
* '''getMinutes'''
*   'getMonth'
+
* '''getMonth'''
*   'getSeconds'
+
* '''getSeconds'''
*   'getTime'
+
* '''getTime'''
*   'getTimezoneOffset'
+
* '''getTimezoneOffset'''
*   'getUTCDate'
+
* '''getUTCDate'''
*   'getUTCDay'
+
* '''getUTCDay'''
*   'getUTCFullYear'
+
* '''getUTCFullYear'''
*   'getUTCHours'
+
* '''getUTCHours'''
*   'getUTCMilliseconds'
+
* '''getUTCMilliseconds'''
*   'getUTCMinutes'
+
* '''getUTCMinutes'''
*   'getUTCMonth'
+
* '''getUTCMonth'''
*   'getUTCSeconds'
+
* '''getUTCSeconds'''

Revision as of 18:16, 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.

Methods

  • getDate
  • getDay
  • getFullYear
  • getHours
  • getMilliseconds
  • getMinutes
  • getMonth
  • getSeconds
  • getTime
  • getTimezoneOffset
  • getUTCDate
  • getUTCDay
  • getUTCFullYear
  • getUTCHours
  • getUTCMilliseconds
  • getUTCMinutes
  • getUTCMonth
  • getUTCSeconds
Personal tools
Namespaces

Variants
Actions
Preface
Configuration
Administrators
Developers