/Zephyr-latest/drivers/rtc/ |
D | rtc_emul.c | 23 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/ |
D | test_rtc_time_to_tm.c | 44 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/ |
D | version_mgr.py | 22 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/ |
D | mec172x_remote_flasher.py | 53 from datetime import datetime 75 now = datetime.now().isoformat()
|
/Zephyr-latest/scripts/tracing/ |
D | parse_ctf.py | 22 import datetime 69 dt = datetime.datetime.fromtimestamp(ns_from_origin / 1e9)
|
/Zephyr-latest/drivers/gnss/ |
D | gnss_emul.c | 370 struct tm datetime; in gnss_emul_set_utc() local 374 gmtime_r(×tamp, &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/ |
D | upload_data.py | 10 from datetime import datetime 22 TODAY = datetime.utcnow()
|
D | pack_as_twister.py | 36 from datetime import datetime, timezone 166 run_date = datetime.now(timezone.utc).isoformat(timespec='seconds')
|
/Zephyr-latest/scripts/release/ |
D | bug_bash.py | 16 from datetime import datetime, timedelta 155 return datetime.strptime(arg_date_str, "%Y-%m-%d")
|
D | list_backports.py | 35 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/ |
D | gh_utils.py | 40 from datetime import datetime 215 date_object = datetime.fromtimestamp(int(date))
|
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/train/ |
D | train.py | 25 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/ |
D | os_mgmt.c | 903 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/ |
D | writer.py | 5 from datetime import datetime
|
/Zephyr-latest/scripts/ |
D | set_assignees.py | 10 import datetime 365 today = datetime.date.today() 366 since = today - datetime.timedelta(days=1)
|
/Zephyr-latest/subsys/mgmt/mcumgr/grp/os_mgmt/ |
D | Kconfig | 139 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/ |
D | leshan.py | 16 from datetime import datetime 157 if isinstance(value, datetime): 166 if isinstance(value, datetime):
|
D | test_lwm2m.py | 23 from datetime import datetime 425 "/3/0/13": datetime.fromtimestamp(0)
|
/Zephyr-latest/scripts/pylib/pytest-twister-harness/src/twister_harness/device/ |
D | device_adapter.py | 15 from datetime import datetime
|
/Zephyr-latest/scripts/ci/stats/ |
D | merged_prs.py | 15 from datetime import timedelta
|
/Zephyr-latest/scripts/pylib/twister/twisterlib/ |
D | environment.py | 19 from datetime import datetime, timezone 1072 self.run_date = datetime.now(timezone.utc).isoformat(timespec='seconds')
|
D | reports.py | 12 from datetime import datetime 50 self.timestamp = datetime.now().isoformat()
|
/Zephyr-latest/doc/services/device_mgmt/smp_groups/ |
D | smp_group_0.rst | 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``. |
|
/Zephyr-latest/doc/kernel/ |
D | timeutil.rst | 115 <https://www.loc.gov/standards/datetime/iso-tc154-wg5_n0038_iso_wd_8601-1_2016-02-16.pdf>`__
|
/Zephyr-latest/doc/releases/ |
D | release-notes-3.6.rst | 419 datetime, and satellite information, enabled by 1000 * Implemented datetime functionality in MCUmgr OS management group. This makes use of the RTC
|