Lines Matching refs:parsed_time
181 Time parsed_time;
182 EXPECT_TRUE(Time::FromString(time_buf, &parsed_time));
183 EXPECT_EQ(current_time, parsed_time.ToTimeT());
211 Time parsed_time;
212 EXPECT_TRUE(Time::FromString("Mon, 15 Oct 2007 19:45:00 GMT", &parsed_time));
213 EXPECT_EQ(comparison_time_pdt_, parsed_time);
217 Time parsed_time;
218 EXPECT_TRUE(Time::FromString("15 Oct 07 12:45:00", &parsed_time));
219 EXPECT_EQ(comparison_time_local_, parsed_time);
223 Time parsed_time;
224 EXPECT_TRUE(Time::FromString("15 Oct 07 19:45 GMT", &parsed_time));
225 EXPECT_EQ(comparison_time_pdt_, parsed_time);
229 Time parsed_time;
230 EXPECT_TRUE(Time::FromString("Mon Oct 15 12:45 PDT 2007", &parsed_time));
231 EXPECT_EQ(comparison_time_pdt_, parsed_time);
235 Time parsed_time;
236 EXPECT_TRUE(Time::FromString("Monday, Oct 15, 2007 12:45 PM", &parsed_time));
237 EXPECT_EQ(comparison_time_local_, parsed_time);
241 Time parsed_time;
242 EXPECT_TRUE(Time::FromString("10/15/07 12:45:00 PM", &parsed_time));
243 EXPECT_EQ(comparison_time_local_, parsed_time);
247 Time parsed_time;
248 EXPECT_TRUE(Time::FromString("15-OCT-2007 12:45pm", &parsed_time));
249 EXPECT_EQ(comparison_time_local_, parsed_time);
253 Time parsed_time;
254 EXPECT_TRUE(Time::FromString("16 Oct 2007 4:45-JST (Tuesday)", &parsed_time));
255 EXPECT_EQ(comparison_time_pdt_, parsed_time);
259 Time parsed_time;
260 EXPECT_TRUE(Time::FromString("15/10/07 12:45", &parsed_time));
261 EXPECT_EQ(parsed_time, comparison_time_local_);
266 Time parsed_time;
270 &parsed_time));
271 EXPECT_EQ(0, parsed_time.ToTimeT());
273 &parsed_time));
274 EXPECT_EQ(0, parsed_time.ToTimeT());
278 Time parsed_time;
282 &parsed_time));
283 EXPECT_EQ(1, parsed_time.ToTimeT());
285 &parsed_time));
286 EXPECT_EQ(1, parsed_time.ToTimeT());
290 Time parsed_time;
294 &parsed_time));
295 EXPECT_EQ(2, parsed_time.ToTimeT());
297 &parsed_time));
298 EXPECT_EQ(2, parsed_time.ToTimeT());
302 Time parsed_time;
306 &parsed_time));
307 EXPECT_EQ(-1, parsed_time.ToTimeT());
309 &parsed_time));
310 EXPECT_EQ(-1, parsed_time.ToTimeT());
317 Time parsed_time;
320 &parsed_time));
321 EXPECT_NE(-1, parsed_time.ToTimeT());
325 Time parsed_time;
329 &parsed_time));
330 EXPECT_EQ(-2, parsed_time.ToTimeT());
332 &parsed_time));
333 EXPECT_EQ(-2, parsed_time.ToTimeT());
337 Time parsed_time;
341 &parsed_time));
342 EXPECT_EQ(-299999999, parsed_time.ToTimeT());
344 &parsed_time));
345 EXPECT_EQ(-299999999, parsed_time.ToTimeT());
347 &parsed_time));
348 EXPECT_EQ(-300003599, parsed_time.ToTimeT());
352 Time parsed_time;
353 EXPECT_FALSE(Time::FromString("", &parsed_time));
357 Time parsed_time;
358 EXPECT_FALSE(Time::FromString("Monday morning 2000", &parsed_time));