Home
last modified time | relevance | path

Searched refs:localtm (Results 1 – 6 of 6) sorted by relevance

/third_party/musl/libc-test/src/functionalext/time/
Dlocaltime.c44 struct tm *localtm; in localtime_0100() local
45 localtm = localtime(&gTime); in localtime_0100()
48 (localtm->tm_year+gYearBase), localtm->tm_mon, localtm->tm_mday, localtm->tm_hour, in localtime_0100()
49 localtm->tm_min, localtm->tm_sec, localtm->tm_wday, localtm->tm_yday, localtm->tm_isdst, in localtime_0100()
50 localtm->tm_gmtoff, localtm->tm_zone); in localtime_0100()
73 struct tm *localtm; in localtime64_0100() local
74 localtm = __localtime64(&gTime); in localtime64_0100()
77 (localtm->tm_year+gYearBase), localtm->tm_mon, localtm->tm_mday, localtm->tm_hour, in localtime64_0100()
78 localtm->tm_min, localtm->tm_sec, localtm->tm_wday, localtm->tm_yday, localtm->tm_isdst, in localtime64_0100()
79 localtm->tm_gmtoff, localtm->tm_zone); in localtime64_0100()
Dlocaltime_r.c44 struct tm *localtm = NULL; in localtime_r_0100() local
46 localtm = localtime_r(&gTime, &res); in localtime_r_0100()
49 (localtm->tm_year+gYearBase), localtm->tm_mon, localtm->tm_mday, localtm->tm_hour, in localtime_r_0100()
50 localtm->tm_min, localtm->tm_sec, localtm->tm_wday, localtm->tm_yday, localtm->tm_isdst, in localtime_r_0100()
51 localtm->tm_gmtoff, localtm->tm_zone); in localtime_r_0100()
74 struct tm *localtm = NULL; in localtime64_r_0100() local
76 localtm = __localtime64_r(&gTime, &res); in localtime64_r_0100()
79 (localtm->tm_year+gYearBase), localtm->tm_mon, localtm->tm_mday, localtm->tm_hour, in localtime64_r_0100()
80 localtm->tm_min, localtm->tm_sec, localtm->tm_wday, localtm->tm_yday, localtm->tm_isdst, in localtime64_r_0100()
81 localtm->tm_gmtoff, localtm->tm_zone); in localtime64_r_0100()
Dtime_ext.c61 struct tm *localtm = localtime(&curClock); in time_0100() local
62 if (!localtm) { in time_0100()
63 EXPECT_PTRNE("time_0100", localtm, NULL); in time_0100()
66 EXPECT_EQ("time_0100", __TEST_DATA_YEAR__, localtm->tm_year); in time_0100()
67 EXPECT_EQ("time_0100", __TEST_DATA_MONTH__, localtm->tm_mon); in time_0100()
68 EXPECT_EQ("time_0100", __TEST_DATA_DAY__, localtm->tm_mday); in time_0100()
69 EXPECT_EQ("time_0100", __TEST_DATA_HOUR__, localtm->tm_hour); in time_0100()
70 EXPECT_EQ("time_0100", __TEST_DATA_MINUTE__, localtm->tm_min); in time_0100()
94 struct tm *localtm = localtime(&curClock); in time64_0100() local
95 if (!localtm) { in time64_0100()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/time/
Dtime_sup.c64 struct tm *localtm = localtime(&curClock); in time_0100() local
65 if (!localtm) { in time_0100()
66 EXPECT_PTRNE("time_0100", localtm, NULL); in time_0100()
69 EXPECT_EQ("time_0100", __TEST_DATA_YEAR__, localtm->tm_year); in time_0100()
70 EXPECT_EQ("time_0100", __TEST_DATA_MONTH__, localtm->tm_mon); in time_0100()
71 EXPECT_EQ("time_0100", __TEST_DATA_DAY__, localtm->tm_mday); in time_0100()
72 EXPECT_EQ("time_0100", __TEST_DATA_HOUR__, localtm->tm_hour); in time_0100()
73 EXPECT_EQ("time_0100", __TEST_DATA_MINUTE__, localtm->tm_min); in time_0100()
/third_party/python/Lib/email/
Dutils.py357 localtm = time.localtime(seconds)
359 delta = datetime.timedelta(seconds=localtm.tm_gmtoff)
360 tz = datetime.timezone(delta, localtm.tm_zone)
365 dst = time.daylight and localtm.tm_isdst > 0
/third_party/python/Lib/
Ddatetime.py1853 localtm = _time.localtime(ts)
1854 local = datetime(*localtm[:6])
1856 gmtoff = localtm.tm_gmtoff
1857 zone = localtm.tm_zone