Lines Matching refs:tm_time
41 static const char *consume_date(const char *s, struct tm *tm_time) in consume_date() argument
72 tm_time->tm_year = atoi(year) - 1900; in consume_date()
73 tm_time->tm_mon = atoi(month) - 1; in consume_date()
74 tm_time->tm_mday = atoi(day); in consume_date()
79 static const char *consume_time(const char *s, struct tm *tm_time) in consume_time() argument
110 tm_time->tm_hour = atoi(hour); in consume_time()
111 tm_time->tm_min = atoi(minute); in consume_time()
112 tm_time->tm_sec = atoi(second); in consume_time()
117 static char *strptime(const char *s, const char *format, struct tm *tm_time) in strptime() argument
123 s = consume_date(s, tm_time); in strptime()
133 s = consume_time(s, tm_time); in strptime()
141 return (char *)consume_time(s, tm_time); in strptime()
144 return (char *)consume_date(s, tm_time); in strptime()
166 struct tm *tm_time = rtc_time_to_tm(&rtctime); in cmd_set() local
180 char *parseRes = strptime(argv[1], format, tm_time); in cmd_set()