i18n.DateTimeParse.MyDate_ Extends
This class hold the intermediate parsing result. After all fields are consumed, final result will be resolved from this class.

Inheritance

Constructor

goog.i18n.DateTimeParse.MyDate_()

Instance Methods

Public Protected Private
calcDate_(datevalidation) boolean
Based on the fields set, fill a Date object. For those fields that not set, use the passed in date object's value.
Arguments:
date : goog.date.DateLike
Date object to be filled.
validation : boolean
If true, input string will be checked to make sure it is valid.
Returns: boolean  false if fields specify a invalid date.
code »
setTwoDigitYear_(year) number
2 digit year special handling. Assuming for example that the defaultCenturyStart is 6/18/1903. This means that two-digit years will be forced into the range 6/18/1903 to 6/17/2003. As a result, years 00, 01, and 02 correspond to 2000, 2001, and 2002. Years 04, 05, etc. correspond to 1904, 1905, etc. If the year is 03, then it is 2003 if the other fields specify a date before 6/18, or 1903 if they specify a date afterwards. As a result, 03 is an ambiguous year. All other two-digit years are unambiguous.
Arguments:
year : number
2 digit year value before adjustment.
Returns: number  disambiguated year.
code »

Instance Properties

ampm :
The date's before/afternoon denominator.
Code »
day :
The date's day of month.
Code »
dayOfWeek :
The date's day of week. Sunday is 0, Saturday is 6.
Code »
era :
The date's era.
Code »
hours :
The date's hour.
Code »
milliseconds :
The date's milliseconds.
Code »
minutes :
The date's minutes.
Code »
month :
The date's month.
Code »
seconds :
The date's seconds.
Code »
tzOffset :
The date's timezone offset.
Code »
year :
The date's year.
Code »

Package i18n.DateTimeParse

Package Reference