Home | History | Annotate | Download | only in src

Lines Matching refs:time

44   TimeComposer time;
48 // Accept ES5 ISO 8601 date-time-strings or legacy dates compatible
73 // An unsigned number followed by ':' is a time value, and is
75 // zero as well. A number followed by '.' is also a time and must be
80 // A word recognizable as a time-zone is recorded as such, as is
87 // parsed as an ES5 date-time string - which means it will default
88 // to UTC time-zone. That's unavoidable if following the ES5
94 // First try getting as far as possible with as ES5 Date Time String.
95 DateToken next_unhandled_token = ParseES5DateTime(&scanner, &day, &time, &tz);
108 if (!time.IsEmpty()) return false;
109 time.Add(n);
110 time.Add(0);
113 if (!time.Add(n)) return false;
116 } else if (scanner.SkipSymbol('.') && time.IsExpecting(n)) {
117 time.Add(n);
121 time.AddFinal(n);
124 } else if (time.IsExpecting(n)) {
125 time.AddFinal(n);
127 // finalizing time.
141 if (type == AM_PM && !time.IsEmpty()) {
142 time.SetHourOffset(value);
152 } else if (token.IsAsciiSign() && (tz.IsUTC() || !time.IsEmpty())) {
153 // Parse UTC offset (only after UTC or time).
178 return day.Write(out) && time.Write(out) && tz.Write(out);
220 TimeComposer* time,
223 ASSERT(time->IsEmpty());
251 // Check for optional time string: 'T'HH':'mm[':'ss['.'sss]]Z
255 // ES5 Date Time String time part is present.
261 // Allow 24:00[:00[.000]], but no other time starting with 24.
263 time->Add(scanner->Next().number());
270 time->Add(scanner->Next().number());
277 time->Add(scanner->Next().number());
284 time->Add(ReadMilliseconds(scanner->Next()));
321 // Successfully parsed ES5 Date Time String. Default to UTC if no TZ given.