search

goog.date.DateTime

Provided By
Extends
All Known Direct Subclasses

Class representing a date and time. Defaults to current date and time if none is specified.

Implements most methods of the native js Date object and can be used interchangeably with it just as if goog.date.DateTime was a subclass of Date.

new DateTime( opt_year, opt_month, opt_date, opt_hours, opt_minutes, opt_seconds, opt_milliseconds )

Parameters
opt_year(number|{getTime: ?}|null)=

Four digit year or a date-like object. If not set, the created object will contain the date determined by goog.now().

opt_monthnumber=

Month, 0 = Jan, 11 = Dec.

opt_datenumber=

Date of month, 1 - 31.

opt_hoursnumber=

Hours, 0 - 23.

opt_minutesnumber=

Minutes, 0 - 59.

opt_secondsnumber=

Seconds, 0 - 61.

opt_millisecondsnumber=

Milliseconds, 0 - 999.

Instance Methods

Instance Properties

Static Functions