Searched refs:date_time (Results 1 – 1 of 1) sorted by relevance
39 struct tm date_time; in bt_cts_time_to_unix_ms() local41 date_time.tm_year = sys_le16_to_cpu(ct_time->year); /* year (little endian) */ in bt_cts_time_to_unix_ms()42 date_time.tm_year -= TIME_UTILS_BASE_YEAR; in bt_cts_time_to_unix_ms()43 date_time.tm_mon = ct_time->mon - 1; /* month start from 1, but need from 0 */ in bt_cts_time_to_unix_ms()44 date_time.tm_mday = ct_time->mday; /* day of month */ in bt_cts_time_to_unix_ms()45 date_time.tm_hour = ct_time->hours; /* hours of day */ in bt_cts_time_to_unix_ms()46 date_time.tm_min = ct_time->min; /* minute of hour */ in bt_cts_time_to_unix_ms()47 date_time.tm_sec = ct_time->sec; /* seconds of minute */ in bt_cts_time_to_unix_ms()48 date_time.tm_wday = ct_time->wday % 7; /* for sundays convert to 0, else keep same */ in bt_cts_time_to_unix_ms()50 LOG_DBG("CTS Write Time: %d/%d/%d %d:%d:%d", date_time.tm_year, date_time.tm_mon, in bt_cts_time_to_unix_ms()[all …]