Lines Matching defs:time
21 TimeComposer time;
25 // Accept ES5 ISO 8601 date-time-strings or legacy dates compatible
43 // (following Safari, ISO actually demands local time).
51 // An unsigned number followed by ':' is a time value, and is
53 // zero as well. A number followed by '.' is also a time and must be
58 // A word recognizable as a time-zone is recorded as such, as is
65 // parsed as an ES5 date-time string - which means it will default
66 // to UTC time-zone. That's unavoidable if following the ES5
72 // First try getting as far as possible with as ES5 Date Time String.
73 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(n);
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())) {
134 // Parse UTC offset (only after UTC or time).
159 return day.Write(out) && time.Write(out) && tz.Write(out);
201 TimeComposer* time,
204 DCHECK(time->IsEmpty());
232 // Check for optional time string: 'T'HH':'mm[':'ss['.'sss]]Z
236 // ES5 Date Time String time part is present.
242 // Allow 24:00[:00[.000]], but no other time starting with 24.
244 time->Add(scanner->Next().number());
251 time->Add(scanner->Next().number());
258 time->Add(scanner->Next().number());
265 time->Add(ReadMilliseconds(scanner->Next()));
302 // Successfully parsed ES5 Date Time String. Default to UTC if no TZ given.