Home | History | Annotate | Download | only in time

Lines Matching refs:UTC

42 	ZoneOffset           int    // seconds east of UTC, e.g. -7*60*60 for -0700
52 {0, parsedTime{1970, January, 1, 0, 0, 0, 0, Thursday, 0, "UTC"}},
53 {1221681866, parsedTime{2008, September, 17, 20, 4, 26, 0, Wednesday, 0, "UTC"}},
54 {-1221681866, parsedTime{1931, April, 16, 3, 55, 34, 0, Thursday, 0, "UTC"}},
55 {-11644473600, parsedTime{1601, January, 1, 0, 0, 0, 0, Monday, 0, "UTC"}},
56 {599529660, parsedTime{1988, December, 31, 0, 1, 0, 0, Saturday, 0, "UTC"}},
57 {978220860, parsedTime{2000, December, 31, 0, 1, 0, 0, Sunday, 0, "UTC"}},
61 {0, parsedTime{1970, January, 1, 0, 0, 0, 1e8, Thursday, 0, "UTC"}},
62 {1221681866, parsedTime{2008, September, 17, 20, 4, 26, 2e8, Wednesday, 0, "UTC"}},
100 tm := Unix(sec, 0).UTC()
117 tm := Unix(0, nsec).UTC()
165 f := func(sec int64) bool { return Unix(sec, 0).UTC().Unix() == sec }
180 t := Unix(0, nsec).UTC()
232 {Date(-1, January, 1, 12, 15, 30, 5e8, UTC), 3},
233 {Date(-1, January, 1, 12, 15, 31, 5e8, UTC), 3},
234 {Date(2012, January, 1, 12, 15, 30, 5e8, UTC), Second},
235 {Date(2012, January, 1, 12, 15, 31, 5e8, UTC), Second},
253 t0 := Unix(ti, int64(tns)).UTC()
422 dt := Date(wt.year, Month(wt.month), wt.day, 0, 0, 0, 0, UTC)
432 if y, w := Date(year, January, 4, 0, 0, 0, 0, UTC).ISOWeek(); y != year || w != 1 {
515 FixedZone("UTC-8", -8*60*60),
516 FixedZone("UTC-4", -4*60*60),
517 UTC,
518 FixedZone("UTC+4", 4*60*60),
519 FixedZone("UTC+8", 8*60*60),
620 t0 := Date(2011, 11, 18, 7, 56, 35, 0, UTC)
621 t1 := Date(2016, 3, 19, 7, 56, 35, 0, UTC)
673 Date(0, 1, 2, 3, 4, 5, 6, UTC),
748 {Date(9999, 4, 12, 23, 20, 50, 520*1e6, UTC), `"9999-04-12T23:20:50.52Z"`},
782 {Date(10000, 1, 1, 0, 0, 0, 0, UTC), "Time.MarshalJSON: year outside of range [0,9999]"},
783 {Date(-1, 1, 1, 0, 0, 0, 0, UTC), "Time.MarshalJSON: year outside of range [0,9999]"},
969 {Date(2009, 11, 23, 0, 0, 0, 1, UTC), Date(2009, 11, 23, 0, 0, 0, 0, UTC), Duration(1)},
970 {Date(2009, 11, 23, 0, 0, 0, 0, UTC), Date(2009, 11, 24, 0, 0, 0, 0, UTC), -24 * Hour},
971 {Date(2009, 11, 24, 0, 0, 0, 0, UTC), Date(2009, 11, 23, 0, 0, 0, 0, UTC), 24 * Hour},
972 {Date(-2009, 11, 24, 0, 0, 0, 0, UTC), Date(-2009, 11, 23, 0, 0, 0, 0, UTC), 24 * Hour},
973 {Time{}, Date(2109, 11, 23, 0, 0, 0, 0, UTC), Duration(minDuration)},
974 {Date(2109, 11, 23, 0, 0, 0, 0, UTC), Time{}, Duration(maxDuration)},
975 {Time{}, Date(-2109, 11, 23, 0, 0, 0, 0, UTC), Duration(maxDuration)},
976 {Date(-2109, 11, 23, 0, 0, 0, 0, UTC), Time{}, Duration(minDuration)},
977 {Date(2290, 1, 1, 0, 0, 0, 0, UTC), Date(2000, 1, 1, 0, 0, 0, 0, UTC), 290*365*24*Hour + 71*24*Hour},
978 {Date(2300, 1, 1, 0, 0, 0, 0, UTC), Date(2000, 1, 1, 0, 0, 0, 0, UTC), Duration(maxDuration)},
979 {Date(2000, 1, 1, 0, 0, 0, 0, UTC), Date(2290, 1, 1, 0, 0, 0, 0, UTC), -290*365*24*Hour - 71*24*Hour},
980 {Date(2000, 1, 1, 0, 0, 0, 0, UTC), Date(2300, 1, 1, 0, 0, 0, 0, UTC), Duration(minDuration)},
1164 {"UTC", func(t1, t2 Time) bool { return t1.UTC() == t2.UTC() }},
1166 {"In", func(t1, t2 Time) bool { return t1.In(UTC) == t2.In(UTC) }},
1207 // nil or UTC.
1210 t2 := Time{}.UTC()
1212 t.Errorf("Time{} and Time{}.UTC() behave differently for %s", tt.name)