Home
last modified time | relevance | path

Searched refs:nowTime (Results 1 – 3 of 3) sorted by relevance

/kernel/liteos_a/shell/full/src/cmds/
Ddate_shellcmd.c174 struct timeval64 nowTime = {0}; in OsFormatPrintTime() local
181 if (gettimeofday64(&nowTime, NULL)) { in OsFormatPrintTime()
184 tm = localtime64(&nowTime.tv_sec); in OsFormatPrintTime()
201 struct timeval64 nowTime = {0}; in OsDateSetTime() local
204 if (gettimeofday64(&nowTime, NULL)) { in OsDateSetTime()
209 setTime.tv_usec = nowTime.tv_usec; in OsDateSetTime()
210 OsCopyTm(&tm, localtime64(&nowTime.tv_sec)); in OsDateSetTime()
257 struct timeval64 nowTime = {0}; in OsShellCmdDate() local
260 if (gettimeofday64(&nowTime, NULL)) { in OsShellCmdDate()
263 PRINTK("%s\n", ctime64(&nowTime.tv_sec)); in OsShellCmdDate()
/kernel/liteos_a/kernel/common/
Dlos_excinfo.c156 CHAR nowTime[NOW_TIME_LENGTH]; in OsRecordExcInfoTime() local
163 (VOID)memset_s(nowTime, sizeof(nowTime), 0, sizeof(nowTime)); in OsRecordExcInfoTime()
164 (VOID)strftime(nowTime, NOW_TIME_LENGTH, "%Y-%m-%d %H:%M:%S", tmTime); in OsRecordExcInfoTime()
166 WriteExcInfoToBuf("%s \n", nowTime); in OsRecordExcInfoTime()
/kernel/liteos_m/components/shell/src/cmds/
Ddate_shell.c44 struct timeval nowTime; in OsShellCmdDate() local
47 if (gettimeofday(&nowTime, NULL)) { in OsShellCmdDate()
50 PRINTK("%s\n", ctime(&nowTime.tv_sec)); in OsShellCmdDate()