Lines Matching refs:tm
25 static void date_print(const struct shell *sh, struct tm *t) in date_print()
38 static int get_y_m_d(const struct shell *sh, struct tm *t, char *date_str) in get_y_m_d()
87 static int get_h_m_s(const struct shell *sh, struct tm *t, char *time_str) in get_h_m_s()
144 struct tm tm; in cmd_date_set() local
149 gmtime_r(&tp.tv_sec, &tm); in cmd_date_set()
152 ret = get_y_m_d(sh, &tm, argv[1]); in cmd_date_set()
157 ret = get_h_m_s(sh, &tm, argv[2]); in cmd_date_set()
163 ret = get_h_m_s(sh, &tm, argv[1]); in cmd_date_set()
173 tp.tv_sec = timeutil_timegm(&tm); in cmd_date_set()
186 date_print(sh, &tm); in cmd_date_set()
194 struct tm tm; in cmd_date_get() local
198 gmtime_r(&tp.tv_sec, &tm); in cmd_date_get()
200 date_print(sh, &tm); in cmd_date_get()