search

goog.date.Interval

Provided By

Class representing a date/time interval. Used for date calculations.

 new goog.date.Interval(0, 1) // One month
 new goog.date.Interval(0, 0, 3, 1) // Three days and one hour
 new goog.date.Interval(goog.date.Interval.DAYS, 1) // One day
 

new Interval( opt_years, opt_months, opt_days, opt_hours, opt_minutes, opt_seconds )

Parameters
opt_years(number|string)=

Years or string representing date part.

opt_monthsnumber=

Months or number of whatever date part specified by first parameter.

opt_daysnumber=

Days.

opt_hoursnumber=

Hours.

opt_minutesnumber=

Minutes.

opt_secondsnumber=

Seconds.

Instance Methods

Instance Properties

Static Functions

Static Properties