Lines Matching refs:dateTime
14 SkTime::DateTime dateTime; in DEF_TEST() local
15 SkTime::GetDateTime(&dateTime); in DEF_TEST()
21 if (dateTime.fYear < kMinimumSaneYear) { in DEF_TEST()
24 static_cast<unsigned>(dateTime.fYear), in DEF_TEST()
27 if (dateTime.fYear > kMaximumSaneYear) { in DEF_TEST()
30 static_cast<unsigned>(dateTime.fYear), in DEF_TEST()
34 REPORTER_ASSERT(r, dateTime.fMonth >= 1); in DEF_TEST()
35 REPORTER_ASSERT(r, dateTime.fMonth <= 12); in DEF_TEST()
37 REPORTER_ASSERT(r, dateTime.fDay >= 1); in DEF_TEST()
38 REPORTER_ASSERT(r, dateTime.fDay <= 31); in DEF_TEST()
40 REPORTER_ASSERT(r, dateTime.fHour <= 23); in DEF_TEST()
42 REPORTER_ASSERT(r, dateTime.fMinute <= 59); in DEF_TEST()
44 REPORTER_ASSERT(r, dateTime.fSecond <= 60); // leap seconds are 23:59:60 in DEF_TEST()
48 REPORTER_ASSERT(r, SkTAbs(SkToInt(dateTime.fTimeZoneMinutes)) <= 14 * 60); in DEF_TEST()
51 dateTime.toISO8601(&timeStamp); in DEF_TEST()