Javascript Date

From Yate Documentation
Revision as of 17:20, 26 February 2014 by Monica (Talk | contribs)

Jump to: navigation, search

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.

Static methods

Date.now() 

Static method Date.now() returns Integer value representing the number of milliseconds since 1 January 1970 00:00:00 UTC (Unix Epoch)

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