Lines Matching full:time
44 TimeComposer time;
48 // Accept ES5 ISO 8601 date-time-strings or legacy dates compatible
66 // (following Safari, ISO actually demands local time).
74 // An unsigned number followed by ':' is a time value, and is
76 // zero as well. A number followed by '.' is also a time and must be
81 // A word recognizable as a time-zone is recorded as such, as is
88 // parsed as an ES5 date-time string - which means it will default
89 // to UTC time-zone. That's unavoidable if following the ES5
95 // First try getting as far as possible with as ES5 Date Time String.
96 DateToken next_unhandled_token = ParseES5DateTime(&scanner, &day, &time, &tz);
109 if (!time.IsEmpty()) return false;
110 time.Add(n);
111 time.Add(0);
114 if (!time.Add(n)) return false;
117 } else if (scanner.SkipSymbol('.') && time.IsExpecting(n)) {
118 time.Add(n);
122 time.AddFinal(n);
125 } else if (time.IsExpecting(n)) {
126 time.AddFinal(n);
128 // finalizing time.
142 if (type == AM_PM && !time.IsEmpty()) {
143 time.SetHourOffset(value);
156 } else if (token.IsAsciiSign() && (tz.IsUTC() || !time.IsEmpty())) {
157 // Parse UTC offset (only after UTC or time).
182 return day.Write(out) && time.Write(out) && tz.Write(out);
224 TimeComposer* time,
227 ASSERT(time->IsEmpty());
255 // Check for optional time string: 'T'HH':'mm[':'ss['.'sss]]Z
259 // ES5 Date Time String time part is present.
265 // Allow 24:00[:00[.000]], but no other time starting with 24.
267 time->Add(scanner->Next().number());
274 time->Add(scanner->Next().number());
281 time->Add(scanner->Next().number());
288 time->Add(ReadMilliseconds(scanner->Next()));
325 // Successfully parsed ES5 Date Time String. Default to UTC if no TZ given.