Lines Matching refs:FormatCivilTime
28 EXPECT_EQ("1970-01-01T00:00:00", absl::FormatCivilTime(ss)); in TEST()
31 EXPECT_EQ("1970-01-01T00:00", absl::FormatCivilTime(mm)); in TEST()
34 EXPECT_EQ("1970-01-01T00", absl::FormatCivilTime(hh)); in TEST()
37 EXPECT_EQ("1970-01-01", absl::FormatCivilTime(d)); in TEST()
40 EXPECT_EQ("1970-01", absl::FormatCivilTime(m)); in TEST()
43 EXPECT_EQ("1970", absl::FormatCivilTime(y)); in TEST()
56 absl::FormatCivilTime(absl::CivilSecond(2015, 1, 2, 3, 4, 5))); in TEST()
58 absl::FormatCivilTime(absl::CivilSecond(2015, 1, 2, 3, 4))); in TEST()
60 absl::FormatCivilTime(absl::CivilSecond(2015, 1, 2, 3))); in TEST()
62 absl::FormatCivilTime(absl::CivilSecond(2015, 1, 2))); in TEST()
64 absl::FormatCivilTime(absl::CivilSecond(2015, 1))); in TEST()
66 absl::FormatCivilTime(absl::CivilSecond(2015))); in TEST()
69 absl::FormatCivilTime(absl::CivilMinute(2015, 1, 2, 3, 4, 5))); in TEST()
71 absl::FormatCivilTime(absl::CivilMinute(2015, 1, 2, 3, 4))); in TEST()
73 absl::FormatCivilTime(absl::CivilMinute(2015, 1, 2, 3))); in TEST()
75 absl::FormatCivilTime(absl::CivilMinute(2015, 1, 2))); in TEST()
77 absl::FormatCivilTime(absl::CivilMinute(2015, 1))); in TEST()
79 absl::FormatCivilTime(absl::CivilMinute(2015))); in TEST()
82 absl::FormatCivilTime(absl::CivilHour(2015, 1, 2, 3, 4, 5))); in TEST()
84 absl::FormatCivilTime(absl::CivilHour(2015, 1, 2, 3, 4))); in TEST()
86 absl::FormatCivilTime(absl::CivilHour(2015, 1, 2, 3))); in TEST()
88 absl::FormatCivilTime(absl::CivilHour(2015, 1, 2))); in TEST()
90 absl::FormatCivilTime(absl::CivilHour(2015, 1))); in TEST()
92 absl::FormatCivilTime(absl::CivilHour(2015))); in TEST()
95 absl::FormatCivilTime(absl::CivilDay(2015, 1, 2, 3, 4, 5))); in TEST()
97 absl::FormatCivilTime(absl::CivilDay(2015, 1, 2, 3, 4))); in TEST()
99 absl::FormatCivilTime(absl::CivilDay(2015, 1, 2, 3))); in TEST()
101 absl::FormatCivilTime(absl::CivilDay(2015, 1, 2))); in TEST()
103 absl::FormatCivilTime(absl::CivilDay(2015, 1))); in TEST()
105 absl::FormatCivilTime(absl::CivilDay(2015))); in TEST()
108 absl::FormatCivilTime(absl::CivilMonth(2015, 1, 2, 3, 4, 5))); in TEST()
110 absl::FormatCivilTime(absl::CivilMonth(2015, 1, 2, 3, 4))); in TEST()
112 absl::FormatCivilTime(absl::CivilMonth(2015, 1, 2, 3))); in TEST()
114 absl::FormatCivilTime(absl::CivilMonth(2015, 1, 2))); in TEST()
116 absl::FormatCivilTime(absl::CivilMonth(2015, 1))); in TEST()
118 absl::FormatCivilTime(absl::CivilMonth(2015))); in TEST()
121 absl::FormatCivilTime(absl::CivilYear(2015, 1, 2, 3, 4, 5))); in TEST()
123 absl::FormatCivilTime(absl::CivilYear(2015, 1, 2, 3, 4))); in TEST()
125 absl::FormatCivilTime(absl::CivilYear(2015, 1, 2, 3))); in TEST()
127 absl::FormatCivilTime(absl::CivilYear(2015, 1, 2))); in TEST()
129 absl::FormatCivilTime(absl::CivilYear(2015, 1))); in TEST()
131 absl::FormatCivilTime(absl::CivilYear(2015))); in TEST()
137 absl::FormatCivilTime(absl::CivilSecond( in TEST()
140 absl::FormatCivilTime(absl::CivilSecond( in TEST()
143 absl::FormatCivilTime(absl::CivilSecond( in TEST()
146 absl::FormatCivilTime(absl::CivilSecond( in TEST()
149 absl::FormatCivilTime(absl::CivilSecond( in TEST()
154 absl::FormatCivilTime(absl::CivilSecond( in TEST()
157 absl::FormatCivilTime(absl::CivilSecond( in TEST()
160 absl::FormatCivilTime(absl::CivilSecond( in TEST()
163 absl::FormatCivilTime(absl::CivilSecond( in TEST()
166 absl::FormatCivilTime(absl::CivilSecond( in TEST()
288 EXPECT_EQ("2015-01-02T03:04:05", absl::FormatCivilTime(second)); in TEST()
291 EXPECT_EQ("2015-01-02T03:04", absl::FormatCivilTime(minute)); in TEST()
294 EXPECT_EQ("2015-01-02T03", absl::FormatCivilTime(hour)); in TEST()
297 EXPECT_EQ("2015-01-02", absl::FormatCivilTime(day)); in TEST()
300 EXPECT_EQ("2015-01", absl::FormatCivilTime(month)); in TEST()
303 EXPECT_EQ("2015", absl::FormatCivilTime(year)); in TEST()
310 EXPECT_EQ("2015-01", absl::FormatCivilTime(month)); in TEST()
313 EXPECT_EQ("2015-01-01", absl::FormatCivilTime(day)); in TEST()
316 EXPECT_EQ("2015-01-01T00", absl::FormatCivilTime(hour)); in TEST()
319 EXPECT_EQ("2015-01-01T00:00", absl::FormatCivilTime(minute)); in TEST()
322 EXPECT_EQ("2015-01-01T00:00:00", absl::FormatCivilTime(second)); in TEST()
372 EXPECT_EQ("2015-01-02T03", absl::FormatCivilTime(d)); in TEST()
425 EXPECT_EQ("2015-01-02T03:04:06", absl::FormatCivilTime(second += 1)); in TEST()
426 EXPECT_EQ("2015-01-02T03:04:07", absl::FormatCivilTime(second + 1)); in TEST()
427 EXPECT_EQ("2015-01-02T03:04:08", absl::FormatCivilTime(2 + second)); in TEST()
428 EXPECT_EQ("2015-01-02T03:04:05", absl::FormatCivilTime(second - 1)); in TEST()
429 EXPECT_EQ("2015-01-02T03:04:05", absl::FormatCivilTime(second -= 1)); in TEST()
430 EXPECT_EQ("2015-01-02T03:04:05", absl::FormatCivilTime(second++)); in TEST()
431 EXPECT_EQ("2015-01-02T03:04:07", absl::FormatCivilTime(++second)); in TEST()
432 EXPECT_EQ("2015-01-02T03:04:07", absl::FormatCivilTime(second--)); in TEST()
433 EXPECT_EQ("2015-01-02T03:04:05", absl::FormatCivilTime(--second)); in TEST()
436 EXPECT_EQ("2015-01-02T03:05", absl::FormatCivilTime(minute += 1)); in TEST()
437 EXPECT_EQ("2015-01-02T03:06", absl::FormatCivilTime(minute + 1)); in TEST()
438 EXPECT_EQ("2015-01-02T03:07", absl::FormatCivilTime(2 + minute)); in TEST()
439 EXPECT_EQ("2015-01-02T03:04", absl::FormatCivilTime(minute - 1)); in TEST()
440 EXPECT_EQ("2015-01-02T03:04", absl::FormatCivilTime(minute -= 1)); in TEST()
441 EXPECT_EQ("2015-01-02T03:04", absl::FormatCivilTime(minute++)); in TEST()
442 EXPECT_EQ("2015-01-02T03:06", absl::FormatCivilTime(++minute)); in TEST()
443 EXPECT_EQ("2015-01-02T03:06", absl::FormatCivilTime(minute--)); in TEST()
444 EXPECT_EQ("2015-01-02T03:04", absl::FormatCivilTime(--minute)); in TEST()
447 EXPECT_EQ("2015-01-02T04", absl::FormatCivilTime(hour += 1)); in TEST()
448 EXPECT_EQ("2015-01-02T05", absl::FormatCivilTime(hour + 1)); in TEST()
449 EXPECT_EQ("2015-01-02T06", absl::FormatCivilTime(2 + hour)); in TEST()
450 EXPECT_EQ("2015-01-02T03", absl::FormatCivilTime(hour - 1)); in TEST()
451 EXPECT_EQ("2015-01-02T03", absl::FormatCivilTime(hour -= 1)); in TEST()
452 EXPECT_EQ("2015-01-02T03", absl::FormatCivilTime(hour++)); in TEST()
453 EXPECT_EQ("2015-01-02T05", absl::FormatCivilTime(++hour)); in TEST()
454 EXPECT_EQ("2015-01-02T05", absl::FormatCivilTime(hour--)); in TEST()
455 EXPECT_EQ("2015-01-02T03", absl::FormatCivilTime(--hour)); in TEST()
458 EXPECT_EQ("2015-01-03", absl::FormatCivilTime(day += 1)); in TEST()
459 EXPECT_EQ("2015-01-04", absl::FormatCivilTime(day + 1)); in TEST()
460 EXPECT_EQ("2015-01-05", absl::FormatCivilTime(2 + day)); in TEST()
461 EXPECT_EQ("2015-01-02", absl::FormatCivilTime(day - 1)); in TEST()
462 EXPECT_EQ("2015-01-02", absl::FormatCivilTime(day -= 1)); in TEST()
463 EXPECT_EQ("2015-01-02", absl::FormatCivilTime(day++)); in TEST()
464 EXPECT_EQ("2015-01-04", absl::FormatCivilTime(++day)); in TEST()
465 EXPECT_EQ("2015-01-04", absl::FormatCivilTime(day--)); in TEST()
466 EXPECT_EQ("2015-01-02", absl::FormatCivilTime(--day)); in TEST()
469 EXPECT_EQ("2015-02", absl::FormatCivilTime(month += 1)); in TEST()
470 EXPECT_EQ("2015-03", absl::FormatCivilTime(month + 1)); in TEST()
471 EXPECT_EQ("2015-04", absl::FormatCivilTime(2 + month)); in TEST()
472 EXPECT_EQ("2015-01", absl::FormatCivilTime(month - 1)); in TEST()
473 EXPECT_EQ("2015-01", absl::FormatCivilTime(month -= 1)); in TEST()
474 EXPECT_EQ("2015-01", absl::FormatCivilTime(month++)); in TEST()
475 EXPECT_EQ("2015-03", absl::FormatCivilTime(++month)); in TEST()
476 EXPECT_EQ("2015-03", absl::FormatCivilTime(month--)); in TEST()
477 EXPECT_EQ("2015-01", absl::FormatCivilTime(--month)); in TEST()
480 EXPECT_EQ("2016", absl::FormatCivilTime(year += 1)); in TEST()
481 EXPECT_EQ("2017", absl::FormatCivilTime(year + 1)); in TEST()
482 EXPECT_EQ("2018", absl::FormatCivilTime(2 + year)); in TEST()
483 EXPECT_EQ("2015", absl::FormatCivilTime(year - 1)); in TEST()
484 EXPECT_EQ("2015", absl::FormatCivilTime(year -= 1)); in TEST()
485 EXPECT_EQ("2015", absl::FormatCivilTime(year++)); in TEST()
486 EXPECT_EQ("2017", absl::FormatCivilTime(++year)); in TEST()
487 EXPECT_EQ("2017", absl::FormatCivilTime(year--)); in TEST()
488 EXPECT_EQ("2015", absl::FormatCivilTime(--year)); in TEST()
497 EXPECT_EQ("2038-01-19T03:14:07", absl::FormatCivilTime(second)); in TEST()
499 EXPECT_EQ("1970-01-01T00:00:00", absl::FormatCivilTime(second)); in TEST()
501 EXPECT_EQ("1901-12-13T20:45:52", absl::FormatCivilTime(second)); in TEST()
503 EXPECT_EQ("1970-01-01T00:00:00", absl::FormatCivilTime(second)); in TEST()
507 EXPECT_EQ("6053-01-23T02:07", absl::FormatCivilTime(minute)); in TEST()
509 EXPECT_EQ("1970-01-01T00:00", absl::FormatCivilTime(minute)); in TEST()
511 EXPECT_EQ("-2114-12-08T21:52", absl::FormatCivilTime(minute)); in TEST()
513 EXPECT_EQ("1970-01-01T00:00", absl::FormatCivilTime(minute)); in TEST()
517 EXPECT_EQ("246953-10-09T07", absl::FormatCivilTime(hour)); in TEST()
519 EXPECT_EQ("1970-01-01T00", absl::FormatCivilTime(hour)); in TEST()
521 EXPECT_EQ("-243014-03-24T16", absl::FormatCivilTime(hour)); in TEST()
523 EXPECT_EQ("1970-01-01T00", absl::FormatCivilTime(hour)); in TEST()
527 EXPECT_EQ("5881580-07-11", absl::FormatCivilTime(day)); in TEST()
529 EXPECT_EQ("1970-01-01", absl::FormatCivilTime(day)); in TEST()
531 EXPECT_EQ("-5877641-06-23", absl::FormatCivilTime(day)); in TEST()
533 EXPECT_EQ("1970-01-01", absl::FormatCivilTime(day)); in TEST()
537 EXPECT_EQ("178958940-08", absl::FormatCivilTime(month)); in TEST()
539 EXPECT_EQ("1970-01", absl::FormatCivilTime(month)); in TEST()
541 EXPECT_EQ("-178955001-05", absl::FormatCivilTime(month)); in TEST()
543 EXPECT_EQ("1970-01", absl::FormatCivilTime(month)); in TEST()
547 EXPECT_EQ("2147483647", absl::FormatCivilTime(year)); in TEST()
549 EXPECT_EQ("0", absl::FormatCivilTime(year)); in TEST()
551 EXPECT_EQ("-2147483648", absl::FormatCivilTime(year)); in TEST()
553 EXPECT_EQ("0", absl::FormatCivilTime(year)); in TEST()
675 EXPECT_EQ("1970-01-01T00:00:00", absl::FormatCivilTime(ss)); in TEST()
678 EXPECT_EQ("1970-01-01T00:00", absl::FormatCivilTime(mm)); in TEST()
681 EXPECT_EQ("1970-01-01T00", absl::FormatCivilTime(hh)); in TEST()
684 EXPECT_EQ("1970-01-01", absl::FormatCivilTime(d)); in TEST()
687 EXPECT_EQ("1970-01", absl::FormatCivilTime(m)); in TEST()
690 EXPECT_EQ("1970", absl::FormatCivilTime(y)); in TEST()
703 EXPECT_EQ("2015-01-02T03:04:05", absl::FormatCivilTime(ss)); in TEST()
713 EXPECT_EQ("2015-01-02T03:04", absl::FormatCivilTime(mm)); in TEST()
723 EXPECT_EQ("2015-01-02T03", absl::FormatCivilTime(hh)); in TEST()
733 EXPECT_EQ("2015-01-02", absl::FormatCivilTime(d)); in TEST()
743 EXPECT_EQ("2015-01", absl::FormatCivilTime(m)); in TEST()
753 EXPECT_EQ("2015", absl::FormatCivilTime(y)); in TEST()
758 EXPECT_EQ("1970-01-01T00:00:00", absl::FormatCivilTime(ss)); in TEST()
761 EXPECT_EQ("1970-01-01T00:00", absl::FormatCivilTime(mm)); in TEST()
764 EXPECT_EQ("1970-01-01T00", absl::FormatCivilTime(hh)); in TEST()
767 EXPECT_EQ("1970-01-01", absl::FormatCivilTime(d)); in TEST()
770 EXPECT_EQ("1970-01", absl::FormatCivilTime(m)); in TEST()
773 EXPECT_EQ("1970", absl::FormatCivilTime(y)); in TEST()
776 EXPECT_EQ("2015-01-02T03:04:05", absl::FormatCivilTime(ss)); in TEST()
779 EXPECT_EQ("2015-01-02T03:04", absl::FormatCivilTime(mm)); in TEST()
782 EXPECT_EQ("2015-01-02T03", absl::FormatCivilTime(hh)); in TEST()
785 EXPECT_EQ("2015-01-02", absl::FormatCivilTime(d)); in TEST()
788 EXPECT_EQ("2015-01", absl::FormatCivilTime(m)); in TEST()
791 EXPECT_EQ("2015", absl::FormatCivilTime(y)); in TEST()
798 EXPECT_EQ("9223372036854775807-12-31T23:59:59", absl::FormatCivilTime(ss)); in TEST()
801 EXPECT_EQ("-9223372036854775808-01-01T00:00:00", absl::FormatCivilTime(ss)); in TEST()
806 EXPECT_EQ("9223372036854775807-12-31T23:59", absl::FormatCivilTime(mm)); in TEST()
809 EXPECT_EQ("-9223372036854775808-01-01T00:00", absl::FormatCivilTime(mm)); in TEST()
814 EXPECT_EQ("9223372036854775807-12-31T23", absl::FormatCivilTime(hh)); in TEST()
817 EXPECT_EQ("-9223372036854775808-01-01T00", absl::FormatCivilTime(hh)); in TEST()
821 EXPECT_EQ("9223372036854775807-12-31", absl::FormatCivilTime(d)); in TEST()
823 EXPECT_EQ("-9223372036854775808-01-01", absl::FormatCivilTime(d)); in TEST()
827 EXPECT_EQ("9223372036854775807-12", absl::FormatCivilTime(m)); in TEST()
829 EXPECT_EQ("-9223372036854775808-01", absl::FormatCivilTime(m)); in TEST()
833 EXPECT_EQ("9223372036854775807", absl::FormatCivilTime(y)); in TEST()
835 EXPECT_EQ("-9223372036854775808", absl::FormatCivilTime(y)); in TEST()
1030 EXPECT_EQ("2013-11-15T16:33:00", absl::FormatCivilTime(cs)); in TEST()
1032 EXPECT_EQ("2013-11-15T17:00:14", absl::FormatCivilTime(cs)); in TEST()
1034 EXPECT_EQ("2013-11-16T00:32:14", absl::FormatCivilTime(cs)); in TEST()
1036 EXPECT_EQ("2013-12-01T16:32:14", absl::FormatCivilTime(cs)); in TEST()
1038 EXPECT_EQ("2014-01-15T16:32:14", absl::FormatCivilTime(cs)); in TEST()
1044 EXPECT_EQ("2013-11-15T16:31:59", absl::FormatCivilTime(cs)); in TEST()
1046 EXPECT_EQ("2013-11-15T15:59:14", absl::FormatCivilTime(cs)); in TEST()
1048 EXPECT_EQ("2013-11-14T23:32:14", absl::FormatCivilTime(cs)); in TEST()
1050 EXPECT_EQ("2013-10-31T16:32:14", absl::FormatCivilTime(cs)); in TEST()
1052 EXPECT_EQ("2012-12-15T16:32:14", absl::FormatCivilTime(cs)); in TEST()
1057 EXPECT_EQ("2014-01-01T00:00:00", absl::FormatCivilTime(cs)); in TEST()
1062 EXPECT_EQ("2013-12-31T23:59:59", absl::FormatCivilTime(cs)); in TEST()
1070 EXPECT_EQ("185085715-11-27T12:21:07", absl::FormatCivilTime(cs)); in TEST()
1074 EXPECT_EQ("-185085717-10-31T10:37:52", absl::FormatCivilTime(cs)); in TEST()
1080 EXPECT_EQ("2017-10-14T14:05:23", absl::FormatCivilTime(cs)); in TEST()
1082 EXPECT_EQ("2016-03-22T00:39:14", absl::FormatCivilTime(cs)); in TEST()
1084 EXPECT_EQ("2027-12-16T16:32:14", absl::FormatCivilTime(cs)); in TEST()
1086 EXPECT_EQ("2017-04-02T16:32:14", absl::FormatCivilTime(cs)); in TEST()
1088 EXPECT_EQ("2024-02-15T16:32:14", absl::FormatCivilTime(cs)); in TEST()
1094 EXPECT_EQ("1999-02-28T00:00:00", absl::FormatCivilTime(cs)); in TEST()
1096 EXPECT_EQ("2009-12-17T18:59:05", absl::FormatCivilTime(cs)); in TEST()
1098 EXPECT_EQ("2011-07-12T08:25:14", absl::FormatCivilTime(cs)); in TEST()
1100 EXPECT_EQ("1999-10-16T16:32:14", absl::FormatCivilTime(cs)); in TEST()
1102 EXPECT_EQ("2010-06-30T16:32:14", absl::FormatCivilTime(cs)); in TEST()
1104 EXPECT_EQ("2003-08-15T16:32:14", absl::FormatCivilTime(cs)); in TEST()
1111 EXPECT_EQ("1991-05-09T03:06:05", absl::FormatCivilTime(cs)); in TEST()
1114 EXPECT_EQ("2036-05-24T05:58:23", absl::FormatCivilTime(cs)); in TEST()
1117 EXPECT_EQ("1613-11-01T16:32:14", absl::FormatCivilTime(cs)); in TEST()
1119 EXPECT_EQ("2013-11-01T16:32:14", absl::FormatCivilTime(cs)); in TEST()
1136 EXPECT_EQ("9223372036854775807-01", absl::FormatCivilTime(c)); in TEST()
1138 EXPECT_EQ("9223372036854775806-12", absl::FormatCivilTime(c)); in TEST()
1141 EXPECT_EQ("-9223372036854775808-01", absl::FormatCivilTime(c)); in TEST()
1143 EXPECT_EQ("-9223372036854775807-01", absl::FormatCivilTime(c)); in TEST()
1148 EXPECT_EQ("2013-03-01T00:00:00", absl::FormatCivilTime(s1)); in TEST()
1151 EXPECT_EQ("2012-02-29T00:00:00", absl::FormatCivilTime(s2)); in TEST()
1154 EXPECT_EQ("1900-03-01T00:00:00", absl::FormatCivilTime(s3)); in TEST()
1202 EXPECT_EQ("2014-11-06", absl::FormatCivilTime(thursday)); in TEST()
1207 EXPECT_EQ("2014-11-27", absl::FormatCivilTime(thanksgiving)); in TEST()