Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/rtc/
Drtc_emul.c23 struct rtc_time datetime; member
33 struct rtc_time datetime; member
62 static bool rtc_emul_is_leap_year(struct rtc_time *datetime) in rtc_emul_is_leap_year() argument
64 if ((datetime->tm_year % 400 == 0) || in rtc_emul_is_leap_year()
65 (((datetime->tm_year % 100) > 0) && ((datetime->tm_year % 4) == 0))) { in rtc_emul_is_leap_year()
72 static int rtc_emul_get_days_in_month(struct rtc_time *datetime) in rtc_emul_get_days_in_month() argument
74 const uint8_t *dim = (rtc_emul_is_leap_year(datetime) == true) ? in rtc_emul_get_days_in_month()
78 return dim[datetime->tm_mon]; in rtc_emul_get_days_in_month()
81 static void rtc_emul_increment_tm(struct rtc_time *datetime) in rtc_emul_increment_tm() argument
84 datetime->tm_sec++; in rtc_emul_increment_tm()
[all …]
/Zephyr-latest/tests/drivers/rtc/rtc_api_helpers/src/
Dtest_rtc_time_to_tm.c44 struct tm *datetime = NULL; in ZTEST() local
46 datetime = rtc_time_to_tm(&rtc_datetime); in ZTEST()
48 zassert(((struct tm *)&rtc_datetime) == datetime, "Incorrect typecast"); in ZTEST()
/Zephyr-latest/scripts/ci/
Dversion_mgr.py22 from datetime import datetime
79 pdate = datetime.strptime(item_compat['date'], '%Y-%m-%dT%H:%M:%S.%f')
110 today = datetime.now().strftime('%Y-%m-%dT%H:%M:%S.%f')
116 wday = datetime.today().strftime('%A')
/Zephyr-latest/boards/microchip/mec172xevb_assy6906/support/
Dmec172x_remote_flasher.py53 from datetime import datetime
75 now = datetime.now().isoformat()
/Zephyr-latest/scripts/tracing/
Dparse_ctf.py22 import datetime
69 dt = datetime.datetime.fromtimestamp(ns_from_origin / 1e9)
/Zephyr-latest/drivers/gnss/
Dgnss_emul.c370 struct tm datetime; in gnss_emul_set_utc() local
374 gmtime_r(&timestamp, &datetime); in gnss_emul_set_utc()
377 + (uint16_t)(datetime.tm_sec * 1000); in gnss_emul_set_utc()
379 data->data.utc.hour = datetime.tm_hour; in gnss_emul_set_utc()
381 data->data.utc.minute = datetime.tm_min; in gnss_emul_set_utc()
382 data->data.utc.month = datetime.tm_mon + 1; in gnss_emul_set_utc()
383 data->data.utc.century_year = datetime.tm_year % 100; in gnss_emul_set_utc()
/Zephyr-latest/scripts/footprint/
Dupload_data.py10 from datetime import datetime
22 TODAY = datetime.utcnow()
Dpack_as_twister.py36 from datetime import datetime, timezone
166 run_date = datetime.now(timezone.utc).isoformat(timespec='seconds')
/Zephyr-latest/scripts/release/
Dbug_bash.py16 from datetime import datetime, timedelta
155 return datetime.strptime(arg_date_str, "%Y-%m-%d")
Dlist_backports.py35 from datetime import datetime, timedelta
52 return datetime.strptime(arg_date_str, "%Y-%m-%d")
99 setattr(args, 'end', datetime.now())
/Zephyr-latest/doc/_extensions/zephyr/
Dgh_utils.py40 from datetime import datetime
215 date_object = datetime.fromtimestamp(int(date))
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/train/
Dtrain.py25 import datetime
32 logdir = "logs/scalars/" + datetime.datetime.now().strftime("%Y%m%d-%H%M%S")
/Zephyr-latest/subsys/mgmt/mcumgr/grp/os_mgmt/src/
Dos_mgmt.c903 struct zcbor_string datetime = { 0 }; in os_mgmt_datetime_write() local
958 ZCBOR_MAP_DECODE_KEY_DECODER("datetime", zcbor_tstr_decode, &datetime), in os_mgmt_datetime_write()
963 } else if (datetime.len < RTC_DATETIME_MIN_STRING_SIZE || in os_mgmt_datetime_write()
964 datetime.len >= RTC_DATETIME_MAX_STRING_SIZE) { in os_mgmt_datetime_write()
968 memcpy(date_string, datetime.value, datetime.len); in os_mgmt_datetime_write()
969 date_string[datetime.len] = '\0'; in os_mgmt_datetime_write()
974 if (pos == (date_string + datetime.len)) { in os_mgmt_datetime_write()
/Zephyr-latest/scripts/west_commands/zspdx/
Dwriter.py5 from datetime import datetime
/Zephyr-latest/scripts/
Dset_assignees.py10 import datetime
365 today = datetime.date.today()
366 since = today - datetime.timedelta(days=1)
/Zephyr-latest/subsys/mgmt/mcumgr/grp/os_mgmt/
DKconfig139 bool "Support for datetime command"
144 Enables support for the datetime get and set functions, this allows for using the
148 bool "Support millisecond field in datetime commands"
156 Allows applications to control and get notifications of when a datetime set/get
/Zephyr-latest/tests/net/lib/lwm2m/interop/pytest/
Dleshan.py16 from datetime import datetime
157 if isinstance(value, datetime):
166 if isinstance(value, datetime):
Dtest_lwm2m.py23 from datetime import datetime
425 "/3/0/13": datetime.fromtimestamp(0)
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/device/
Ddevice_adapter.py15 from datetime import datetime
/Zephyr-latest/scripts/ci/stats/
Dmerged_prs.py15 from datetime import timedelta
/Zephyr-latest/scripts/pylib/twister/twisterlib/
Denvironment.py19 from datetime import datetime, timezone
1072 self.run_date = datetime.now(timezone.utc).isoformat(timespec='seconds')
Dreports.py12 from datetime import datetime
50 self.timestamp = datetime.now().isoformat()
/Zephyr-latest/doc/services/device_mgmt/smp_groups/
Dsmp_group_0.rst404 (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``. |
/Zephyr-latest/doc/kernel/
Dtimeutil.rst115 <https://www.loc.gov/standards/datetime/iso-tc154-wg5_n0038_iso_wd_8601-1_2016-02-16.pdf>`__
/Zephyr-latest/doc/releases/
Drelease-notes-3.6.rst419 datetime, and satellite information, enabled by
1000 * Implemented datetime functionality in MCUmgr OS management group. This makes use of the RTC