Home
last modified time | relevance | path

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

/components/utilities/ulog/syslog/
A Dsyslog.c186 struct tm *tm, tm_tmp; in syslog_formater() local
188 tm = gmtime_r(&now, &tm_tmp); in syslog_formater()
192 get_month_str(tm->tm_mon + 1), tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); in syslog_formater()
195 get_month_str(tm->tm_mon + 1), tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); in syslog_formater()
/components/libc/compilers/common/include/sys/
A Dtime.h107 time_t timegm(struct tm * const t);
112 struct tm *gmtime_r(const time_t *timep, struct tm *r);
113 char* asctime_r(const struct tm *t, char *buf);
115 struct tm* localtime_r(const time_t* t, struct tm* r);
119 struct tm* gmtime(const time_t* t);
120 struct tm* localtime(const time_t* t);
121 time_t mktime(struct tm* const t);
/components/dfs/dfs_v1/filesystems/iso9660/
A Ddfs_iso9660.c189 struct tm tm; in iso9660_convert_unixtime() local
198 tm.tm_wday = 0; in iso9660_convert_unixtime()
200 return mktime(&tm); in iso9660_convert_unixtime()
205 struct tm tm; in iso9660_convert_unixtime2() local
207 tm.tm_sec = date->second; in iso9660_convert_unixtime2()
208 tm.tm_min = date->minute; in iso9660_convert_unixtime2()
209 tm.tm_hour = date->hour; in iso9660_convert_unixtime2()
210 tm.tm_mday = date->day; in iso9660_convert_unixtime2()
211 tm.tm_mon = date->month; in iso9660_convert_unixtime2()
213 tm.tm_wday = 0; in iso9660_convert_unixtime2()
[all …]
/components/libc/compilers/common/
A Dctime.c155 struct tm *gmtime_r(const time_t *timep, struct tm *r) in gmtime_r()
166 rt_memset(r, RT_NULL, sizeof(struct tm)); in gmtime_r()
207 struct tm* gmtime(const time_t* t) in gmtime()
209 static struct tm tmp; in gmtime()
214 struct tm* localtime_r(const time_t* t, struct tm* r) in localtime_r()
226 struct tm* localtime(const time_t* t) in localtime()
228 static struct tm tmp; in localtime()
233 time_t mktime(struct tm * const t) in mktime()
301 char *asctime(const struct tm *timeptr) in asctime()
310 struct tm tm; in ctime_r() local
[all …]
/components/drivers/include/drivers/
A Ddev_alarm.h47 struct tm wktime;
55 struct tm wktime; /* when will the alarm wake up user */
/components/drivers/rtc/
A Ddev_soft_rtc.c87 struct tm time_temp; in soft_rtc_control()
90 rt_memset(&time_temp, 0, sizeof(struct tm)); in soft_rtc_control()
206 struct tm time_new = SOFT_RTC_TIME_DEFAULT; in rt_soft_rtc_init()
A Ddev_rtc.c149 struct tm tm_new = {0}; in set_date()
196 struct tm tm_new = {0}; in set_time()
307 struct tm tm_new = {0}; in date()
A Ddev_alarm.c39 rt_inline rt_uint32_t alarm_mkdaysec(struct tm *time) in alarm_mkdaysec()
97 static void alarm_wakeup(struct rt_alarm *alarm, struct tm *now) in alarm_wakeup()
240 struct tm now; in alarm_update()
345 static rt_bool_t is_valid_date(struct tm *date) in is_valid_date()
366 static rt_err_t alarm_setup(rt_alarm_t alarm, struct tm *wktime) in alarm_setup()
370 struct tm *setup, now; in alarm_setup()
579 struct tm now; in rt_alarm_start()
/components/utilities/ulog/
A Dulog.c279 static struct tm *tm, tm_tmp; in ulog_head_formater() local
287 tm = localtime_r(&t, &tm_tmp); in ulog_head_formater()
289 …rt_snprintf(log_buf + log_len, ULOG_LINE_BUF_SIZE - log_len, "%02d-%02d %02d:%02d:%02d", tm->tm_mo… in ulog_head_formater()
290 tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); in ulog_head_formater()
/components/lwp/arch/common/
A Dvdso.c98 struct tm time_vdso = SOFT_RTC_VDSOTIME_DEFAULT; in __initdata()
/components/dfs/dfs_v1/filesystems/elmfat/
A Ddfs_elm.c815 struct tm tm_file; in dfs_elm_stat()
986 struct tm tm_now; in get_fattime()
A Dff.c3663 DWORD cl, bcs, clst, tm; local
3730 tm = GET_FATTIME(); /* Set created time */
3731 st_dword(dj.dir + DIR_CrtTime, tm);
3732 st_dword(dj.dir + DIR_ModTime, tm);
4077 DWORD tm; local
4091 tm = GET_FATTIME(); /* Modified time */
5011 DWORD dcl, pcl, tm; local
5031 tm = GET_FATTIME();
5039 st_dword(fs->win + DIR_ModTime, tm);
5052 st_dword(fs->dirbuf + XDIR_ModTime, tm); /* Created time */
[all …]
/components/dfs/dfs_v2/filesystems/elmfat/
A Dff.c3727 DWORD cl, bcs, clst, tm; local
3794 tm = GET_FATTIME(); /* Set created time */
3795 st_dword(dj.dir + DIR_CrtTime, tm);
3796 st_dword(dj.dir + DIR_ModTime, tm);
4141 DWORD tm; local
4155 tm = GET_FATTIME(); /* Modified time */
5081 DWORD dcl, pcl, tm; local
5101 tm = GET_FATTIME();
5109 st_dword(fs->win + DIR_ModTime, tm);
5122 st_dword(fs->dirbuf + XDIR_ModTime, tm); /* Created time */
[all …]
A Ddfs_elm.c905 struct tm tm_file; in dfs_elm_stat()
1212 struct tm tm_now; in get_fattime()
/components/net/lwip/lwip-2.0.3/src/apps/httpd/makefsdata/
A Dmakefsdata.c916 struct tm* t; in file_write_http_header()
/components/net/lwip/lwip-2.1.2/src/apps/http/makefsdata/
A Dmakefsdata.c1134 struct tm *t; in file_write_http_header()
/components/net/lwip/lwip-2.1.2/src/netif/ppp/
A Deap.c317 struct tm *tp; in pncrypt_setkey()
/components/net/lwip/lwip-2.0.3/src/netif/ppp/
A Deap.c317 struct tm *tp; in pncrypt_setkey()

Completed in 54 milliseconds