Home
last modified time | relevance | path

Searched refs:datetime (Results 1 – 4 of 4) sorted by relevance

/base/security/device_security_level/baselib/utils/src/
Dutils_datetime.c55 bool GetDateTimeByMillisecondSince1970(uint64_t input, DateTime *datetime) in GetDateTimeByMillisecondSince1970() argument
57 if (datetime == NULL) { in GetDateTimeByMillisecondSince1970()
64 datetime->year = (uint16_t)(tm.tm_year + 1900); // need add 1900 in GetDateTimeByMillisecondSince1970()
65 datetime->mon = (uint16_t)(tm.tm_mon + 1); in GetDateTimeByMillisecondSince1970()
66 datetime->day = (uint16_t)tm.tm_mday; in GetDateTimeByMillisecondSince1970()
67 datetime->hour = (uint16_t)tm.tm_hour; in GetDateTimeByMillisecondSince1970()
68 datetime->min = (uint16_t)tm.tm_min; in GetDateTimeByMillisecondSince1970()
69 datetime->sec = (uint16_t)tm.tm_sec; in GetDateTimeByMillisecondSince1970()
70 datetime->msec = (uint16_t)(input % SEC_TO_MILLISEC); in GetDateTimeByMillisecondSince1970()
74 bool GetDateTimeByMillisecondSinceBoot(uint64_t input, DateTime *datetime) in GetDateTimeByMillisecondSinceBoot() argument
[all …]
/base/usb/usb_manager/test/native/js_unittest/
DDateAndTimeUtil.js30 const datetime = new Date();
31 const hours = datetime.getHours();
32 const minutes = datetime.getMinutes();
41 const datetime = new Date();
42 const hours = datetime.getHours();
43 const minutes = datetime.getMinutes();
44 const seconds = datetime.getMilliseconds()
/base/security/device_security_level/baselib/utils/include/
Dutils_datetime.h40 bool GetDateTimeByMillisecondSince1970(uint64_t input, DateTime *datetime);
42 bool GetDateTimeByMillisecondSinceBoot(uint64_t input, DateTime *datetime);
/base/security/device_security_level/oem_property/ohos/standard/
Ddslm_cred_tool.py29 from datetime import datetime
279 self.payload['signTime'] = datetime.now().strftime('%Y%m%d%H%M%S')