Lines Matching full:time
11 * 2018-02-16 armink add auto sync time by NTP
14 #include <time.h>
20 /* Using NTP auto sync RTC time */
22 /* NTP first sync delay time for network connect, unit: second */
33 * Set system date(time not modify).
50 /* get current time */ in set_date()
51 now = time(RT_NULL); in set_date()
55 /* converts calendar time time into local time. */ in set_date()
67 /* converts the local time in time to calendar time. */ in set_date()
83 * Set system time(date not modify).
100 /* get current time */ in set_time()
101 now = time(RT_NULL); in set_time()
105 /* converts calendar time time into local time. */ in set_time()
112 /* update time. */ in set_time()
117 /* converts the local time in time to calendar time. */ in set_time()
181 now = time(RT_NULL); in list_date()
184 FINSH_FUNCTION_EXPORT(list_date, show date and time.)
187 FINSH_FUNCTION_EXPORT(set_time, set time. e.g: set_time(23,59,59))
195 /* output current time */ in date()
196 now = time(RT_NULL); in date()
201 /* set time and date */ in date()
249 MSH_CMD_EXPORT(date, get date and time or set [year month day hour min sec]);