/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/glib/glib/ |
D | gdatetime.c | 620 g_date_time_get_week_number (GDateTime *datetime, in g_date_time_get_week_number() argument 627 g_date_time_get_ymd (datetime, &year, &month, &day); in g_date_time_get_week_number() 631 a = g_date_time_get_year (datetime) - 1; in g_date_time_get_week_number() 674 GDateTime *datetime; in g_date_time_alloc() local 676 datetime = g_slice_new0 (GDateTime); in g_date_time_alloc() 677 datetime->tz = g_time_zone_ref (tz); in g_date_time_alloc() 678 datetime->ref_count = 1; in g_date_time_alloc() 680 return datetime; in g_date_time_alloc() 694 g_date_time_ref (GDateTime *datetime) in g_date_time_ref() argument 696 g_return_val_if_fail (datetime != NULL, NULL); in g_date_time_ref() [all …]
|
D | gdatetime.h | 100 void g_date_time_unref (GDateTime *datetime); 102 GDateTime * g_date_time_ref (GDateTime *datetime); 152 GDateTime * g_date_time_add (GDateTime *datetime, 157 GDateTime * g_date_time_add_years (GDateTime *datetime, 161 GDateTime * g_date_time_add_months (GDateTime *datetime, 165 GDateTime * g_date_time_add_weeks (GDateTime *datetime, 169 GDateTime * g_date_time_add_days (GDateTime *datetime, 174 GDateTime * g_date_time_add_hours (GDateTime *datetime, 178 GDateTime * g_date_time_add_minutes (GDateTime *datetime, 182 GDateTime * g_date_time_add_seconds (GDateTime *datetime, [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/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/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/flutter/engine/flutter/lib/web_ui/test/ |
D | alarm_clock_test.dart | 34 // There should be no timers scheduled until we set a non-null datetime. 37 alarm.datetime = clock.fromNow(minutes: 1); 57 alarm.datetime = clock.fromNow(minutes: 1); 64 testAsync('AlarmClock does nothing when new datetime is the same', 70 alarm.datetime = clock.fromNow(minutes: 1); 74 alarm.datetime = alarm.datetime.add(Duration.zero); 80 alarm.datetime = alarm.datetime.add(Duration.zero); 94 alarm.datetime = clock.ago(minutes: 1); 106 alarm.datetime = clock.fromNow(minutes: 1); 114 alarm.datetime = alarm.datetime.add(const Duration(minutes: 1)); [all …]
|
/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/grpc/src/python/grpcio_tests/tests/unit/ |
D | _grpc_shutdown_test.py | 19 import datetime 23 _TIMEOUT_FOR_SEGFAULT = datetime.timedelta(seconds=10) 45 deadline = datetime.datetime.now() + _TIMEOUT_FOR_SEGFAULT 47 while datetime.datetime.now() < deadline:
|
/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/sqlite3/ |
D | adapter_datetime.py | 2 import datetime 8 sqlite3.register_adapter(datetime.datetime, adapt_datetime) 13 now = datetime.datetime.now()
|
/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/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/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/grpc/tools/failures/ |
D | detect_new_failures.py | 21 import datetime 161 return datetime.datetime.strptime(date_str, "%Y-%m-%d").date() 184 import argparse, datetime 186 today = datetime.date.today() 187 a_week_ago = today - datetime.timedelta(days=7) 235 calibration_begin = (datetime.date.today() - 236 datetime.timedelta(days=args.calibration_days) - 237 datetime.timedelta(days=args.reporting_days)) 238 calibration_end = calibration_begin + datetime.timedelta( 241 reporting_end = reporting_begin + datetime.timedelta(
|
/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/grpc/tools/line_count/ |
D | summarize-history.py | 17 import datetime 25 yield start + datetime.timedelta(n) 28 start_date = datetime.date(2017, 3, 26) 29 end_date = datetime.date(2017, 3, 29)
|
/third_party/grpc/src/python/grpcio_tests/tests_py3_only/unit/ |
D | _simple_stubs_test.py | 29 import datetime 117 def _time_invocation(to_time: Callable[[], None]) -> datetime.timedelta: 118 start = datetime.datetime.now() 120 return datetime.datetime.now() - start 163 datetime.timedelta()) / len(initial_runs) 165 datetime.timedelta()) / len(cached_runs) 171 timeout: Optional[datetime.timedelta] = None, 174 timeout = timeout or datetime.timedelta(seconds=10) 175 end = datetime.datetime.now() + timeout 176 while datetime.datetime.now() < end:
|
/third_party/mindspore/tests/st/fl/mobile/ |
D | simulator.py | 18 import datetime 164 start_fl_job_result['next_ts'] = datetime_to_timestamp(datetime.datetime.now()) + 500 193 update_model_result['next_ts'] = datetime_to_timestamp(datetime.datetime.now()) + 500 253 current_ts = datetime_to_timestamp(datetime.datetime.now()) 262 current_ts = datetime_to_timestamp(datetime.datetime.now()) 271 current_ts = datetime_to_timestamp(datetime.datetime.now())
|