Lines Matching refs:time

20   TimeComposer time;
24 // Accept ES5 ISO 8601 date-time-strings or legacy dates compatible
42 // (following Safari, ISO actually demands local time).
50 // An unsigned number followed by ':' is a time value, and is
52 // zero as well. A number followed by '.' is also a time and must be
57 // A word recognizable as a time-zone is recorded as such, as is
64 // parsed as an ES5 date-time string - which means it will default
65 // to UTC time-zone. That's unavoidable if following the ES5
72 DateToken next_unhandled_token = ParseES5DateTime(&scanner, &day, &time, &tz);
86 if (!time.IsEmpty()) return false;
87 time.Add(n);
88 time.Add(0);
91 if (!time.Add(n)) return false;
94 } else if (scanner.SkipSymbol('.') && time.IsExpecting(n)) {
95 time.Add(n);
99 time.AddFinal(ms);
102 } else if (time.IsExpecting(n)) {
103 time.AddFinal(n);
105 // finalizing time.
119 if (type == AM_PM && !time.IsEmpty()) {
120 time.SetHourOffset(value);
133 } else if (token.IsAsciiSign() && (tz.IsUTC() || !time.IsEmpty())) {
135 // Parse UTC offset (only after UTC or time).
152 // Handle time zones like GMT-8
160 // No need to accept time zones like GMT-12345
172 bool success = day.Write(out) && time.Write(out) && tz.Write(out);
238 DateStringTokenizer<Char>* scanner, DayComposer* day, TimeComposer* time,
241 DCHECK(time->IsEmpty());
271 // Check for optional time string: 'T'HH':'mm[':'ss['.'sss]]Z
275 // ES5 Date Time String time part is present.
281 // Allow 24:00[:00[.000]], but no other time starting with 24.
283 time->Add(scanner->Next().number());
290 time->Add(scanner->Next().number());
297 time->Add(scanner->Next().number());
304 time->Add(ReadMilliseconds(scanner->Next()));
341 // ES#sec-date-time-string-format Date Time String Format
342 // "When the time zone offset is absent, date-only forms are interpreted
343 // as a UTC time and date-time forms are interpreted as a local time."
344 if (tz->IsEmpty() && time->IsEmpty()) {