/third_party/gstreamer/gstreamer/gst/ |
D | gstdatetime.c | 63 GDateTime *datetime; member 71 static void gst_date_time_free (GstDateTime * datetime); 95 gst_dt->datetime = dt; in gst_date_time_new_from_g_date_time() 111 gst_date_time_to_g_date_time (GstDateTime * datetime) in gst_date_time_to_g_date_time() argument 113 g_return_val_if_fail (datetime != NULL, NULL); in gst_date_time_to_g_date_time() 115 if (datetime->fields != GST_DATE_TIME_FIELDS_YMD_HMS) in gst_date_time_to_g_date_time() 118 return g_date_time_add (datetime->datetime, 0); in gst_date_time_to_g_date_time() 129 gst_date_time_has_year (const GstDateTime * datetime) in gst_date_time_has_year() argument 131 g_return_val_if_fail (datetime != NULL, FALSE); in gst_date_time_has_year() 133 return (datetime->fields >= GST_DATE_TIME_FIELDS_Y); in gst_date_time_has_year() [all …]
|
D | gstdatetime.h | 60 gboolean gst_date_time_has_year (const GstDateTime * datetime); 63 gboolean gst_date_time_has_month (const GstDateTime * datetime); 66 gboolean gst_date_time_has_day (const GstDateTime * datetime); 69 gboolean gst_date_time_has_time (const GstDateTime * datetime); 72 gboolean gst_date_time_has_second (const GstDateTime * datetime); 77 gint gst_date_time_get_year (const GstDateTime * datetime); 80 gint gst_date_time_get_month (const GstDateTime * datetime); 83 gint gst_date_time_get_day (const GstDateTime * datetime); 86 gint gst_date_time_get_hour (const GstDateTime * datetime); 89 gint gst_date_time_get_minute (const GstDateTime * datetime); [all …]
|
/third_party/python/Lib/test/test_zoneinfo/ |
D | test_zoneinfo.py | 17 from datetime import date, datetime, time, timedelta, timezone 95 class DatetimeSubclass(datetime): 258 (datetime(2019, 1, 1, tzinfo=timezone.utc), ValueError), 259 (datetime(2019, 1, 1), ValueError), 273 dt = datetime(2020, 1, 1, tzinfo=zi) 499 epoch = datetime(1970, 1, 1) 552 ZoneTransition(datetime(1883, 6, 9, 14), LMT, STD), 560 dt0 = datetime(1883, 6, 9, 1, tzinfo=zi) 561 dt1 = datetime(1883, 6, 10, 1, tzinfo=zi) 571 datetime(1883, 6, 9, 1, tzinfo=zi), [all …]
|
/third_party/python/Lib/test/test_email/ |
D | test_utils.py | 1 import datetime 14 utcoffset = datetime.timedelta(hours=-7) 15 tz = datetime.timezone(utcoffset) 16 naive_dt = datetime.datetime(*dateargs) 17 aware_dt = datetime.datetime(*dateargs, tzinfo=tz) 28 utc_dt = datetime.datetime(*self.dateargs, 29 tzinfo=datetime.timezone.utc) 76 t0 = datetime.datetime(2012, 3, 12, 1, 1) 83 t0 = datetime.datetime(2012, 3, 12, 1, 1) 91 t0 = datetime.datetime(2012, 3, 12, 1, 1) [all …]
|
/third_party/PyYAML/tests/data/ |
D | timestamp-bugs.code | 2 [datetime.datetime(2001, 12, 15, 3, 29, 43, 100000), 'UTC-05:30'], 3 [datetime.datetime(2001, 12, 14, 16, 29, 43, 100000), 'UTC+05:30'], 4 [datetime.datetime(2001, 12, 14, 21, 59, 43, 1010), None], 5 [datetime.datetime(2001, 12, 14, 21, 59, 43, 0, FixedOffset(60, "+1")), 'UTC+01:00'], 6 [datetime.datetime(2001, 12, 14, 21, 59, 43, 0, FixedOffset(-90, "-1:30")), 'UTC-01:30'], 7 [datetime.datetime(2005, 7, 8, 17, 35, 4, 517600), None],
|
D | construct-timestamp.code | 2 "canonical": datetime.datetime(2001, 12, 15, 2, 59, 43, 100000), 3 "valid iso8601": datetime.datetime(2001, 12, 15, 2, 59, 43, 100000), 4 "space separated": datetime.datetime(2001, 12, 15, 2, 59, 43, 100000), 5 "no time zone (Z)": datetime.datetime(2001, 12, 15, 2, 59, 43, 100000), 6 "date (00:00:00Z)": datetime.date(2002, 12, 14),
|
/third_party/python/Lib/email/ |
D | utils.py | 30 import datetime 147 dt = datetime.datetime.fromtimestamp(timeval, datetime.timezone.utc) 149 dt = datetime.datetime.utcfromtimestamp(timeval) 164 if dt.tzinfo is None or dt.tzinfo != datetime.timezone.utc: 203 return datetime.datetime(*dtuple[:6]) 204 return datetime.datetime(*dtuple[:6], 205 tzinfo=datetime.timezone(datetime.timedelta(seconds=tz))) 349 return datetime.datetime.now(datetime.timezone.utc).astimezone() 359 delta = datetime.timedelta(seconds=localtm.tm_gmtoff) 360 tz = datetime.timezone(delta, localtm.tm_zone) [all …]
|
/third_party/python/Lib/sqlite3/ |
D | dbapi2.py | 23 import datetime 35 Date = datetime.date 37 Time = datetime.time 39 Timestamp = datetime.datetime 64 return datetime.date(*map(int, val.split(b"-"))) 76 val = datetime.datetime(year, month, day, hours, minutes, seconds, microseconds) 80 register_adapter(datetime.date, adapt_date) 81 register_adapter(datetime.datetime, adapt_datetime)
|
/third_party/python/Doc/library/ |
D | datetime.rst | 1 :mod:`datetime` --- Basic date and time types 4 .. module:: datetime 11 **Source code:** :source:`Lib/datetime.py` 17 The :mod:`datetime` module supplies classes for manipulating dates and times. 57 For applications requiring aware objects, :class:`.datetime` and :class:`.time` 64 supplied by the :mod:`datetime` module. The :class:`timezone` class can 74 The :mod:`datetime` module exports the following constants: 78 The smallest year number allowed in a :class:`date` or :class:`.datetime` object. 84 The largest year number allowed in a :class:`date` or :class:`.datetime` object. 107 .. class:: datetime [all …]
|
/third_party/musl/ndk-test/script/ |
D | build.py | 8 import datetime 31 build_start = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') 46 build_end = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') 54 copy_start = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') 83 copy_end = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') 90 del_start = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') 101 del_end = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
|
/third_party/mesa3d/.gitlab-ci/lava/utils/ |
D | gitlab_section.py | 5 from datetime import datetime, timedelta 22 __start_time: Optional[datetime] = field(default=None, init=False) 23 __end_time: Optional[datetime] = field(default=None, init=False) 40 def get_timestamp(self, time: datetime) -> str: argument 41 unix_ts = datetime.timestamp(time) 44 def section(self, marker: str, header: str, time: datetime) -> str: argument 66 self.__start_time = datetime.now() 71 self.__end_time = datetime.now() 82 return datetime.now() - self.__start_time
|
/third_party/cef/tools/ |
D | date_util.py | 6 import datetime 11 return str(datetime.datetime.now().year) 16 return datetime.datetime.now().strftime('%B %d, %Y')
|
/third_party/python/Doc/includes/ |
D | tzinfo_examples.py | 1 from datetime import tzinfo, timedelta, datetime 25 stamp = (dt - datetime(1970, 1, 1, tzinfo=self)) // SECOND 30 return datetime(*args, microsecond=dt.microsecond, 78 DSTSTART_2007 = datetime(1, 3, 8, 2) 80 DSTEND_2007 = datetime(1, 11, 1, 2) 84 DSTSTART_1987_2006 = datetime(1, 4, 1, 2) 85 DSTEND_1987_2006 = datetime(1, 10, 25, 2) 90 DSTSTART_1967_1986 = datetime(1, 4, 24, 2) 103 return (datetime(year, 1, 1), ) * 2
|
/third_party/mesa3d/.gitlab-ci/tests/utils/ |
D | test_lava_log.py | 8 from datetime import datetime, timedelta 68 "dt": datetime.now(), 75 "dt": datetime.now(), 80 "dt": datetime.now(), 86 "dt": datetime.now(), 91 "dt": datetime.now(), 114 "dt": datetime.now(), 119 "dt": datetime.now(), 262 "dt": datetime.now(),
|
/third_party/python/Doc/includes/sqlite3/ |
D | adapter_datetime.py | 2 import datetime 8 sqlite3.register_adapter(datetime.datetime, adapt_datetime) 13 now = datetime.datetime.now()
|
D | pysqlite_datetime.py | 2 import datetime 8 today = datetime.date.today() 9 now = datetime.datetime.now()
|
/third_party/mesa3d/bin/ |
D | gen_calendar_entries.py | 30 import datetime 80 def _calculate_release_start(major: str, minor: str) -> datetime.date: 85 quarter = datetime.date.fromisoformat(f'20{major}-0{[1, 4, 7, 10][int(minor)]}-01') 114 date = date + datetime.timedelta(days=7) 116 date = date + datetime.timedelta(days=7) 122 def _calculate_next_release_date(next_is_zero: bool) -> datetime.date: 128 date = datetime.date.today() 142 return date + datetime.timedelta(days=delta) 158 date = date + datetime.timedelta(days=14) 160 date = date + datetime.timedelta(days=14) [all …]
|
/third_party/python/Doc/c-api/ |
D | datetime.rst | 8 Various date and time objects are supplied by the :mod:`datetime` module. 9 Before using any of these functions, the header file :file:`datetime.h` must be 21 :attr:`datetime.timezone.utc`. 97 Return a :class:`datetime.date` object with the specified year, month and day. 102 Return a :class:`datetime.datetime` object with the specified year, month, day, hour, 108 Return a :class:`datetime.datetime` object with the specified year, month, day, hour, 116 Return a :class:`datetime.time` object with the specified hour, minute, second and 122 Return a :class:`datetime.time` object with the specified hour, minute, second, 130 Return a :class:`datetime.timedelta` object representing the given number 133 :class:`datetime.timedelta` objects. [all …]
|
/third_party/protobuf/benchmarks/util/ |
D | result_uploader.py | 10 import datetime 18 _NOW = "%d%02d%02d" % (datetime.datetime.now().year, 19 datetime.datetime.now().month, 20 datetime.datetime.now().day)
|
/third_party/gstreamer/gstreamer/tests/check/gst/ |
D | gstvalue.c | 2318 GstDateTime *datetime, *datetime2; in GST_START_TEST() local 2323 datetime = gst_date_time_new (0, 2010, 6, 23, 7, 40, 10); in GST_START_TEST() 2326 GST_TYPE_DATE_TIME, datetime, NULL); in GST_START_TEST() 2333 fail_unless (date_time_equal (datetime, datetime2)); in GST_START_TEST() 2335 gst_date_time_unref (datetime); in GST_START_TEST() 2337 datetime = NULL; in GST_START_TEST() 2356 &datetime)); in GST_START_TEST() 2357 fail_unless (datetime != NULL); in GST_START_TEST() 2358 fail_unless (gst_date_time_get_year (datetime) == 2010); in GST_START_TEST() 2359 fail_unless (gst_date_time_get_month (datetime) == 6); in GST_START_TEST() [all …]
|
/third_party/libwebsockets/lib/plat/windows/ |
D | windows-misc.c | 49 ULARGE_INTEGER datetime; in lws_now_usecs() local 63 memcpy(&datetime, &filetime, sizeof(datetime)); in lws_now_usecs() 66 return (datetime.QuadPart / 10) - DELTA_EPOCH_IN_MICROSECS; in lws_now_usecs()
|
/third_party/mesa3d/.gitlab-ci/tests/lava/ |
D | helpers.py | 2 from datetime import datetime 24 dt: Callable = datetime.now, msg="test", lvl="target" 42 timed_msg = {"dt": str(datetime.now()), "msg": "New message", "lvl": lvl} 94 with freeze_time(datetime.now()) as time_travel: 120 with freeze_time(datetime.now()) as time_travel:
|
/third_party/python/Mac/Tools/ |
D | plistlib_generate_testdata.py | 10 import datetime 32 …seconds = datetime.datetime(2004, 10, 26, 10, 33, 33, tzinfo=datetime.timezone(datetime.timedelta(…
|
/third_party/googletest/googletest/test/ |
D | gtest_xml_output_unittest.py | 34 import datetime 278 date_time_from_xml = datetime.datetime( 283 time_delta = abs(datetime.datetime.now() - date_time_from_xml) 285 self.assertTrue(time_delta < datetime.timedelta(seconds=600),
|
/third_party/mbedtls/scripts/ |
D | assemble_changelog.py | 38 import datetime 357 return datetime.datetime.utcfromtimestamp(int(text)) 363 return datetime.datetime.fromtimestamp(mtime) 376 self.datetime = self.file_timestamp(filename) 381 self.datetime = self.commit_timestamp(creation_hash) 384 self.datetime = self.commit_timestamp(merge_hash) 391 return (self.category, self.datetime, self.filename) 480 print(ts.category, ts.datetime, filename)
|