Searched refs:datetime (Results 1 – 4 of 4) sorted by relevance
55 bool GetDateTimeByMillisecondSince1970(uint64_t input, DateTime *datetime) in GetDateTimeByMillisecondSince1970() argument57 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 …]
30 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()
40 bool GetDateTimeByMillisecondSince1970(uint64_t input, DateTime *datetime);42 bool GetDateTimeByMillisecondSinceBoot(uint64_t input, DateTime *datetime);
29 from datetime import datetime279 self.payload['signTime'] = datetime.now().strftime('%Y%m%d%H%M%S')