/third_party/python/Lib/tomllib/ |
H A D | _re.py | 7 from datetime import date, datetime, time, timedelta, timezone, tzinfo namespace 41 ([0-9]{{4}})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]) # date, e.g. 1988-10-27 52 def match_to_datetime(match: re.Match) -> datetime | date: 53 """Convert a `RE_DATETIME` match to `datetime.datetime` or `datetime.date`. 55 Raises ValueError if the match does not correspond to a valid date 73 return date(year, month, day) 82 else: # local date-time
|
/third_party/python/Lib/test/test_tomllib/ |
H A D | burntsushi.py | 17 "local date": "date-local", 41 elif isinstance(obj, datetime.date): 43 "type": "date-local", 89 date = dt_str[:10] 106 return date + "T" + time + sign + offset
|
/third_party/protobuf/php/src/Google/Protobuf/Internal/ |
H A D | GPBUtil.php | 409 // DateTime::createFromFormat parses without failing but as a nonsensical date 441 $date = substr($timestamp, 0, $periodIndex); variable 443 $timestamp = $date.$timezone; 447 $date = \DateTime::createFromFormat(\DateTime::RFC3339, $timestamp, new \DateTimeZone("UTC")); variable 448 if ($date === false) { 453 $seconds = $date->format("U"); 471 $date = new \DateTime('@'.$value->getSeconds(), new \DateTimeZone("UTC")); variable 472 return $date->format("Y-m-d\TH:i:s".$nanoseconds."\Z");
|
/third_party/icu/tools/unicodetools/com/ibm/rbm/ |
H A D | BundleItem.java | 28 private Date created; // The date of creation of the item 29 private Date modified; // The last modification date of the item 48 created = new Date(); // Defaults to the system's current date in BundleItem() 49 modified = new Date(); // Defaults to the system's current date in BundleItem() 64 * Returns the date this item was last modified. 72 * Returns the date the item was first created. 213 * Sets the created date of the item given a date formatted string. 223 * Sets the created date of the item. 226 public void setCreatedDate(Date date) { in setCreatedDate() argument 245 setModifiedDate(Date date) setModifiedDate() argument [all...] |
/third_party/icu/icu4c/source/i18n/ |
H A D | olsontz.h | 184 virtual void getOffset(UDate date, UBool local, int32_t& rawOffset, 191 UDate date, UTimeZoneLocalOption nonExistingTimeOpt, 221 virtual UBool inDaylightTime(UDate date, UErrorCode& ec) const override; 298 void getHistoricalOffset(UDate date, UBool local, 368 * A SimpleTimeZone that governs the behavior for date >= finalMillis. 373 * For date >= finalMillis, the finalZone will be used.
|
H A D | ucal.cpp | 295 ucal_setGregorianChange(UCalendar *cal, UDate date, UErrorCode *pErrorCode) { in ucal_setGregorianChange() argument 314 gregocal->setGregorianChange(date, *pErrorCode); in ucal_setGregorianChange() 434 int32_t date, in ucal_setDate() 440 ((Calendar*)cal)->set(year, month, date); in ucal_setDate() 448 int32_t date, in ucal_setDateTime() 456 ((Calendar*)cal)->set(year, month, date, hour, minute, second); in ucal_setDateTime() 644 ucal_isWeekend(const UCalendar *cal, UDate date, UErrorCode *status) in ucal_isWeekend() argument 649 return ((Calendar*)cal)->isWeekend(date, *status); in ucal_isWeekend() 840 UDate date = ((Calendar*)cal)->getTime(*status); in ucal_getTimeZoneOffsetFromLocal() local 851 date, nonExistingTimeOp in ucal_getTimeZoneOffsetFromLocal() 431 ucal_setDate( UCalendar* cal, int32_t year, int32_t month, int32_t date, UErrorCode *status) ucal_setDate() argument 445 ucal_setDateTime( UCalendar* cal, int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute, int32_t second, UErrorCode *status) ucal_setDateTime() argument [all...] |
/third_party/node/deps/icu-small/source/i18n/ |
H A D | olsontz.h | 184 virtual void getOffset(UDate date, UBool local, int32_t& rawOffset, 191 UDate date, UTimeZoneLocalOption nonExistingTimeOpt, 221 virtual UBool inDaylightTime(UDate date, UErrorCode& ec) const override; 298 void getHistoricalOffset(UDate date, UBool local, 368 * A SimpleTimeZone that governs the behavior for date >= finalMillis. 373 * For date >= finalMillis, the finalZone will be used.
|
H A D | ucal.cpp | 296 ucal_setGregorianChange(UCalendar *cal, UDate date, UErrorCode *pErrorCode) { in ucal_setGregorianChange() argument 316 gregocal->setGregorianChange(date, *pErrorCode); in ucal_setGregorianChange() 435 int32_t date, in ucal_setDate() 441 ((Calendar*)cal)->set(year, month, date); in ucal_setDate() 449 int32_t date, in ucal_setDateTime() 457 ((Calendar*)cal)->set(year, month, date, hour, minute, second); in ucal_setDateTime() 669 ucal_isWeekend(const UCalendar *cal, UDate date, UErrorCode *status) in ucal_isWeekend() argument 674 return ((Calendar*)cal)->isWeekend(date, *status); in ucal_isWeekend() 865 UDate date = ((Calendar*)cal)->getTime(*status); in ucal_getTimeZoneOffsetFromLocal() local 876 date, nonExistingTimeOp in ucal_getTimeZoneOffsetFromLocal() 432 ucal_setDate( UCalendar* cal, int32_t year, int32_t month, int32_t date, UErrorCode *status) ucal_setDate() argument 446 ucal_setDateTime( UCalendar* cal, int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute, int32_t second, UErrorCode *status) ucal_setDateTime() argument [all...] |
/third_party/python/Tools/scripts/ |
H A D | mailerdaemon.py | 206 mm, dd = m.getdate('date')[1:1+2] 207 date = '%s %02d' % (calendar.month_abbr[mm], dd) 209 date = '??????' 212 errorfirst[e] = '%s (%s)' % (fn, date) 215 errorlast[e] = '%s (%s)' % (fn, date)
|
/third_party/mesa3d/src/drm-shim/ |
H A D | device.c | 183 const char *date = "20190320"; in drm_shim_ioctl_version() local 192 if (args->date) in drm_shim_ioctl_version() 193 strncpy(args->date, date, args->date_len); in drm_shim_ioctl_version() 197 args->date_len = strlen(date); in drm_shim_ioctl_version()
|
/third_party/python/Lib/ |
H A D | datetime.py | 1 """Concrete date/time and related types. 7 __all__ = ("date", "datetime", "time", "timedelta", "timezone", "tzinfo", 21 _MAXORDINAL = 3652059 # date.max.toordinal() 116 # the desired date. Now compute how many 100-year cycles precede n. 458 # tuple[int, int, int] -> tuple[int, int, int] version of date.fromisocalendar 893 class date: class 894 """Concrete date type. 941 "a date object. " 959 "Construct a date from a POSIX timestamp (like time.time())." 965 "Construct a date fro 1922 def date(self): global() member in datetime [all...] |
/third_party/icu/icu4c/source/test/intltest/ |
H A D | caltztst.h | 40 // Utility methods to create a date. This is useful for converting Java constructs 42 UDate date(int32_t y, int32_t m, int32_t d, int32_t hr=0, int32_t min=0, int32_t sec=0); 44 // Utility methods to create a date. Returns a Date in UTC. This will differ 45 // from local dates returned by date() by the current default zone offset. 48 // Utility method to get the fields of a date; similar to Date.getYear() etc. 49 void dateToFields(UDate date, int32_t& y, int32_t& m, int32_t& d, int32_t& hr, int32_t& min, int32_t& sec);
|
H A D | caltztst.cpp | 180 // Utility methods to create a date. This is useful for converting Java constructs 183 CalendarTimeZoneTest::date(int32_t y, int32_t m, int32_t d, int32_t hr, int32_t min, int32_t sec) in date() function in CalendarTimeZoneTest 200 // Utility methods to create a date. The returned Date is UTC rather than local. 207 Date dt = date(y, m, d, hr, min, sec) + 221 CalendarTimeZoneTest::dateToFields(UDate date, int32_t& y, int32_t& m, int32_t& d, int32_t& hr, int32_t& min, int32_t& sec) in dateToFields() argument 226 cal->setTime(date, status); in dateToFields()
|
/third_party/typescript/tests/baselines/reference/ |
H A D | useRegexpGroups.js | 5 let date = result[0]; 21 var date = result[0];
variable
|
/third_party/curl/lib/ |
H A D | http_aws_sigv4.c | 129 /* string been x-PROVIDER-date:TIMESTAMP, I need +1 for ':' */ 159 "x-%s-date:%s", provider1, timestamp); in make_headers() 542 char date[9]; in Curl_output_aws_sigv4() local 698 memcpy(date, timestamp, sizeof(date)); in Curl_output_aws_sigv4() 699 date[sizeof(date) - 1] = 0; in Curl_output_aws_sigv4() 732 date, region, service, request_type); in Curl_output_aws_sigv4() 768 HMAC_SHA256(secret, strlen(secret), date, strlen(date), sign in Curl_output_aws_sigv4() [all...] |
/third_party/skia/third_party/externals/icu/source/i18n/ |
H A D | ucal.cpp | 295 ucal_setGregorianChange(UCalendar *cal, UDate date, UErrorCode *pErrorCode) { in ucal_setGregorianChange() argument 314 gregocal->setGregorianChange(date, *pErrorCode); in ucal_setGregorianChange() 434 int32_t date, in ucal_setDate() 440 ((Calendar*)cal)->set(year, month, date); in ucal_setDate() 448 int32_t date, in ucal_setDateTime() 456 ((Calendar*)cal)->set(year, month, date, hour, minute, second); in ucal_setDateTime() 644 ucal_isWeekend(const UCalendar *cal, UDate date, UErrorCode *status) in ucal_isWeekend() argument 649 return ((Calendar*)cal)->isWeekend(date, *status); in ucal_isWeekend() 840 UDate date = ((Calendar*)cal)->getTime(*status); in ucal_getTimeZoneOffsetFromLocal() local 851 date, nonExistingTimeOp in ucal_getTimeZoneOffsetFromLocal() 431 ucal_setDate( UCalendar* cal, int32_t year, int32_t month, int32_t date, UErrorCode *status) ucal_setDate() argument 445 ucal_setDateTime( UCalendar* cal, int32_t year, int32_t month, int32_t date, int32_t hour, int32_t minute, int32_t second, UErrorCode *status) ucal_setDateTime() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/ |
H A D | wps_upnp.c | 219 /* Write the current date/time per RFC */ 225 struct tm *date; in format_date() local 229 date = gmtime(&t); in format_date() 230 if (date == NULL) in format_date() 233 &weekday_str[date->tm_wday * 4], date->tm_mday, in format_date() 234 &month_str[date->tm_mon * 4], date->tm_year + 1900, in format_date() 235 date->tm_hour, date in format_date() [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/ |
H A D | wps_upnp.c | 219 /* Write the current date/time per RFC */ 225 struct tm *date; in format_date() local 229 date = gmtime(&t); in format_date() 230 if (date == NULL) in format_date() 233 &weekday_str[date->tm_wday * 4], date->tm_mday, in format_date() 234 &month_str[date->tm_mon * 4], date->tm_year + 1900, in format_date() 235 date->tm_hour, date in format_date() [all...] |
/third_party/ffmpeg/tests/fate/ |
H A D | oma.mak | 4 # Also tests splitting and joining the date into TYER and TDAT id3v2.3 tags. 6 fate-oma-atrac3p-remux: CMD = transcode oma $(TARGET_SAMPLES)/atrac3p/at3p_sample1.oma oma "-c copy -metadata date=2021-09-23 -metadata time=16:00 -metadata title=noise -metadata id3v2_priv.foo=hex\xB3 -metadata_header_padding 500" "-c copy -t 0.2" "-show_entries format_tags"
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
H A D | DangiCalendar.java | 46 * the lunar date calculation. Therefore, the following simpler rule works: 95 * Construct a <code>DangiCalendar</code> with the give date set in the default time zone 97 * @param date The date to which the new calendar is set. 103 public DangiCalendar(Date date) { in DangiCalendar() argument 105 setTime(date); in DangiCalendar()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
H A D | DangiCalendar.java | 48 * the lunar date calculation. Therefore, the following simpler rule works: 97 * Construct a <code>DangiCalendar</code> with the give date set in the default time zone 99 * @param date The date to which the new calendar is set. 105 public DangiCalendar(Date date) { in DangiCalendar() argument 107 setTime(date); in DangiCalendar()
|
/third_party/skia/experimental/tools/ |
H A D | android_skp_capture.sh | 26 filename="$(date '+%H%M%S').skp" 28 local_path="$(date '+%Y-%m-%d_%H%M%S')_${package}.skp" 51 timeout=$(( $(date +%s) + $phase1_timeout_seconds)) 54 if [ $(date +%s) -gt $timeout ] ; then 71 timeout=$(( $(date +%s) + $phase2_timeout_seconds)) 74 if [ $(date +%s) -gt $timeout ] ; then
|
/third_party/ffmpeg/tests/ |
H A D | fate.sh | 86 date=$(date -u +%Y%m%d%H%M%S) 87 echo "fate:1:${date}:${slot}:${version}:$1:$2:${branch}:${comment}" >report
|
/third_party/typescript/tests/baselines/reference/tsbuild/outFile/ |
H A D | tsbuildinfo-is-not-generated-when-incremental-is-set-to-false.js | 139 [[90m12:00:08 AM[0m] Project 'src/first/tsconfig.json' is out of date because output file 'src/first/bin/first-output.tsbuildinfo' does not exist
143 [[90m12:00:19 AM[0m] Project 'src/second/tsconfig.json' is out of date because output file 'src/2/second-output.tsbuildinfo' does not exist
147 [[90m12:00:30 AM[0m] Project 'src/third/tsconfig.json' is out of date because output file 'src/third/thirdjs/output/third-output.js' does not exist
|
/third_party/typescript/tests/baselines/reference/tsbuild/sample1/ |
H A D | rebuilds-completely-when-version-in-tsbuildinfo-doesnt-match-ts-version.js | 395 [[90m12:00:27 AM[0m] Project 'src/core/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion'
399 [[90m12:00:38 AM[0m] Project 'src/logic/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion'
403 [[90m12:00:46 AM[0m] Project 'src/tests/tsconfig.json' is out of date because output for it was generated with version 'FakeTSVersion' that differs with current version 'FakeTSCurrentVersion'
|