Searched refs:datetime (Results 1 – 16 of 16) sorted by relevance
21 struct rtc_time datetime; member31 struct rtc_time datetime; member60 static bool rtc_emul_is_leap_year(struct rtc_time *datetime) in rtc_emul_is_leap_year() argument62 if ((datetime->tm_year % 400 == 0) || in rtc_emul_is_leap_year()63 (((datetime->tm_year % 100) > 0) && ((datetime->tm_year % 4) == 0))) { in rtc_emul_is_leap_year()107 static int rtc_emul_get_days_in_month(struct rtc_time *datetime) in rtc_emul_get_days_in_month() argument109 const uint8_t *dim = (rtc_emul_is_leap_year(datetime) == true) ? in rtc_emul_get_days_in_month()113 return dim[datetime->tm_mon]; in rtc_emul_get_days_in_month()116 static void rtc_emul_increment_tm(struct rtc_time *datetime) in rtc_emul_increment_tm() argument119 datetime->tm_sec++; in rtc_emul_increment_tm()[all …]
44 struct tm *datetime = NULL; in ZTEST() local46 datetime = rtc_time_to_tm(&rtc_datetime); in ZTEST()48 zassert(((struct tm *)&rtc_datetime) == datetime, "Incorrect typecast"); in ZTEST()
21 from datetime import datetime74 pdate = datetime.strptime(item_compat['date'], '%Y-%m-%dT%H:%M:%S.%f')104 today = datetime.now().strftime('%Y-%m-%dT%H:%M:%S.%f')110 wday = datetime.today().strftime('%A')
53 from datetime import datetime75 now = datetime.now().isoformat()
22 import datetime69 dt = datetime.datetime.fromtimestamp(ns_from_origin / 1e9)
10 from datetime import datetime22 TODAY = datetime.utcnow()
16 from datetime import datetime, timedelta155 return datetime.strptime(arg_date_str, "%Y-%m-%d")
35 from datetime import datetime, timedelta52 return datetime.strptime(arg_date_str, "%Y-%m-%d")99 setattr(args, 'end', datetime.now())
5 from datetime import datetime
25 import datetime32 logdir = "logs/scalars/" + datetime.datetime.now().strftime("%Y%m%d-%H%M%S")
10 import datetime347 today = datetime.date.today()348 since = today - datetime.timedelta(days=1)
15 from datetime import datetime
18 from datetime import datetime, timezone848 self.run_date = datetime.now(timezone.utc).isoformat(timespec='seconds')
13 from datetime import datetime27 self.timestamp = datetime.now().isoformat()
404 (str)"datetime" : (str)436 | "datetime" | String in format: ``yyyy-MM-dd'T'HH:mm:ss.SSSSSSZZZZZ``. |473 (str)"datetime" : (str)482 | "datetime" | String in format: ``yyyy-MM-dd'T'HH:mm:ss.SSSSSSZZZZZ``. |
115 <https://www.loc.gov/standards/datetime/iso-tc154-wg5_n0038_iso_wd_8601-1_2016-02-16.pdf>`__