Searched refs:timeStr (Results 1 - 2 of 2) sorted by relevance
/kernel/liteos_m/testsuites/unittest/posix/src/time/ |
H A D | time_func_test_01.c | 133 static char *TmToStr(const struct tm *timePtr, char *timeStr, unsigned len) in TmToStr() argument 135 if (timePtr == NULL || timeStr == NULL) { in TmToStr() 138 (VOID)sprintf_s(timeStr, len, "%ld/%d/%d %02d:%02d:%02d WEEK(%d)", timePtr->tm_year + TM_BASE_YEAR, in TmToStr() 140 return timeStr; in TmToStr() 201 char timeStr[TIME_STR_LEN] = {0}; variable 204 ICUNIT_ASSERT_STRING_EQUAL("1970/1/1 05:14:40 WEEK(4)", TmToStr(timePtr, timeStr, TIME_STR_LEN), 0); 208 LOG("\n LONG_MAX = %lld, cvt result : %s", time1, TmToStr(timePtr, timeStr, TIME_STR_LEN)); 209 ICUNIT_ASSERT_STRING_EQUAL("2038/1/19 03:14:07 WEEK(2)", TmToStr(timePtr, timeStr, TIME_STR_LEN), 0); 213 LOG("\n LONG_MAX - 1 = %lld, cvt result : %s", time1, TmToStr(timePtr, timeStr, TIME_STR_LEN)); 214 ICUNIT_ASSERT_STRING_EQUAL("2038/1/19 03:14:06 WEEK(2)", TmToStr(timePtr, timeStr, TIME_STR_LE 415 char timeStr[TIME_STR_LEN] = {0}; global() variable [all...] |
/kernel/liteos_a/shell/full/src/cmds/ |
H A D | date_shellcmd.c | 198 STATIC INT32 OsDateSetTime(const CHAR *timeStr) in OsDateSetTime() argument 212 if (OsStrToTm(timeStr, &tm)) { in OsDateSetTime()
|
Completed in 2 milliseconds