Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 5 of 5) sorted by relevance

/lib/libc/
Dtime.c50 asctime_r(const struct tm *tm, char *buf) in asctime_r() argument
56 dayOfWeek[tm->tm_wday], months[tm->tm_mon], in asctime_r()
57 tm->tm_mday, tm->tm_hour, tm->tm_min, in asctime_r()
58 tm->tm_sec, tm->tm_year + 1900); in asctime_r()
64 asctime(const struct tm *tm) in asctime() argument
67 return asctime_r(tm, buf); in asctime()
73 struct tm tm; in ctime_r() local
74 return asctime_r(localtime_r(timep, &tm), buf); in ctime_r()
107 struct tm *
108 gmtime_r(const time_t *timep, struct tm *tm) in gmtime_r() argument
[all …]
/sys/dev/x86/
Drtc.c63 KTime tm; in RTC_ReadTime() local
68 tm.sec = RTC_ReadReg(RTC_SECONDS); in RTC_ReadTime()
69 tm.min = RTC_ReadReg(RTC_MINUTES); in RTC_ReadTime()
70 tm.hour = RTC_ReadReg(RTC_HOURS); in RTC_ReadTime()
71 tm.wday = RTC_ReadReg(RTC_WEEKDAY); in RTC_ReadTime()
72 tm.mday = RTC_ReadReg(RTC_DAY); in RTC_ReadTime()
73 tm.month = RTC_ReadReg(RTC_MONTH); in RTC_ReadTime()
74 tm.year = RTC_ReadReg(RTC_YEAR); in RTC_ReadTime()
77 if (tm.hour & 0x80) { in RTC_ReadTime()
82 tm.sec = BCD_TO_BIN(tm.sec); in RTC_ReadTime()
[all …]
/sys/kern/
Dktime.c61 KTime_Fixup(KTime *tm) in KTime_Fixup() argument
65 if (tm->yday == -1) { in KTime_Fixup()
67 for (m = 0; m < tm->month; m++) { in KTime_Fixup()
68 yday += KTimeDaysInMonth(tm->year, m); in KTime_Fixup()
70 yday += tm->mday; in KTime_Fixup()
71 tm->yday = yday; in KTime_Fixup()
76 KTime_ToEpoch(const KTime *tm) in KTime_ToEpoch() argument
83 for (y = 1970; y < tm->year; y++) { in KTime_ToEpoch()
90 if (tm->yday == -1) { in KTime_ToEpoch()
92 for (m = 0; m < tm->month; m++) { in KTime_ToEpoch()
[all …]
/include/
Dtime.h7 struct tm { struct
20 char *asctime_r(const struct tm *tm, char *buf);
21 char *asctime(const struct tm *tm);
24 struct tm *gmtime(const time_t *timep);
25 struct tm *gmtime_r(const time_t *timep, struct tm *result);
26 struct tm *localtime(const time_t *timep);
27 struct tm *localtime_r(const time_t *timep, struct tm *result);
28 time_t mktime(struct tm *tm);
/sys/include/
Dktime.h21 void KTime_Fixup(KTime *tm);
22 UnixEpoch KTime_ToEpoch(const KTime *tm);
23 void KTime_FromEpoch(UnixEpoch time, KTime *tm);