/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_format_test.cc | 37 #define ExpectTime(tp, tz, y, m, d, hh, mm, ss, off, isdst, zone) \ argument 39 time_zone::absolute_lookup al = tz.lookup(tp); \ 60 void TestFormatSpecifier(time_point<D> tp, time_zone tz, const std::string& fmt, in TestFormatSpecifier() argument 62 EXPECT_EQ(ans, format(fmt, tp, tz)) << fmt; in TestFormatSpecifier() 63 EXPECT_EQ("xxx " + ans, format("xxx " + fmt, tp, tz)); in TestFormatSpecifier() 64 EXPECT_EQ(ans + " yyy", format(fmt + " yyy", tp, tz)); in TestFormatSpecifier() 65 EXPECT_EQ("xxx " + ans + " yyy", format("xxx " + fmt + " yyy", tp, tz)); in TestFormatSpecifier() 131 time_zone tz = utc_time_zone(); in TEST() local 135 EXPECT_EQ("", format("", tp, tz)); in TEST() 136 EXPECT_EQ(" ", format(" ", tp, tz)); in TEST() [all …]
|
D | time_zone_lookup_test.cc | 636 time_zone tz; in LoadZone() local 637 load_time_zone(name, &tz); in LoadZone() 638 return tz; in LoadZone() 643 #define ExpectTime(tp, tz, y, m, d, hh, mm, ss, off, isdst, zone) \ argument 645 time_zone::absolute_lookup al = tz.lookup(tp); \ 662 int VersionCmp(time_zone tz, const std::string& target) { in VersionCmp() argument 663 std::string version = tz.version(); in VersionCmp() 680 time_zone tz; in TEST() local 681 if (load_time_zone(zone, &tz)) { in TEST() 682 EXPECT_EQ(zone, tz.name()); in TEST() [all …]
|
D | cctz_benchmark.cc | 716 cctz::time_zone tz; in TestTimeZone() local 717 cctz::load_time_zone("America/Los_Angeles", &tz); in TestTimeZone() 718 return tz; in TestTimeZone() 722 cctz::time_zone tz; in BM_Zone_LoadUTCTimeZoneFirst() local 723 cctz::load_time_zone("UTC", &tz); // in case we're first in BM_Zone_LoadUTCTimeZoneFirst() 726 benchmark::DoNotOptimize(cctz::load_time_zone("UTC", &tz)); in BM_Zone_LoadUTCTimeZoneFirst() 732 cctz::time_zone tz; in BM_Zone_LoadUTCTimeZoneLast() local 734 cctz::load_time_zone(name, &tz); // prime cache in BM_Zone_LoadUTCTimeZoneLast() 737 benchmark::DoNotOptimize(cctz::load_time_zone("UTC", &tz)); in BM_Zone_LoadUTCTimeZoneLast() 743 cctz::time_zone tz = cctz::utc_time_zone(); // in case we're first in BM_Zone_LoadTimeZoneFirst() local [all …]
|
/third_party/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_format_test.cc | 37 #define ExpectTime(tp, tz, y, m, d, hh, mm, ss, off, isdst, zone) \ argument 39 time_zone::absolute_lookup al = tz.lookup(tp); \ 60 void TestFormatSpecifier(time_point<D> tp, time_zone tz, const std::string& fmt, in TestFormatSpecifier() argument 62 EXPECT_EQ(ans, format(fmt, tp, tz)) << fmt; in TestFormatSpecifier() 63 EXPECT_EQ("xxx " + ans, format("xxx " + fmt, tp, tz)); in TestFormatSpecifier() 64 EXPECT_EQ(ans + " yyy", format(fmt + " yyy", tp, tz)); in TestFormatSpecifier() 65 EXPECT_EQ("xxx " + ans + " yyy", format("xxx " + fmt + " yyy", tp, tz)); in TestFormatSpecifier() 131 time_zone tz = utc_time_zone(); in TEST() local 135 EXPECT_EQ("", format("", tp, tz)); in TEST() 136 EXPECT_EQ(" ", format(" ", tp, tz)); in TEST() [all …]
|
D | time_zone_lookup_test.cc | 636 time_zone tz; in LoadZone() local 637 load_time_zone(name, &tz); in LoadZone() 638 return tz; in LoadZone() 643 #define ExpectTime(tp, tz, y, m, d, hh, mm, ss, off, isdst, zone) \ argument 645 time_zone::absolute_lookup al = tz.lookup(tp); \ 662 int VersionCmp(time_zone tz, const std::string& target) { in VersionCmp() argument 663 std::string version = tz.version(); in VersionCmp() 680 time_zone tz; in TEST() local 681 if (load_time_zone(zone, &tz)) { in TEST() 682 EXPECT_EQ(zone, tz.name()); in TEST() [all …]
|
D | cctz_benchmark.cc | 716 cctz::time_zone tz; in TestTimeZone() local 717 cctz::load_time_zone("America/Los_Angeles", &tz); in TestTimeZone() 718 return tz; in TestTimeZone() 722 cctz::time_zone tz; in BM_Zone_LoadUTCTimeZoneFirst() local 723 cctz::load_time_zone("UTC", &tz); // in case we're first in BM_Zone_LoadUTCTimeZoneFirst() 726 benchmark::DoNotOptimize(cctz::load_time_zone("UTC", &tz)); in BM_Zone_LoadUTCTimeZoneFirst() 732 cctz::time_zone tz; in BM_Zone_LoadUTCTimeZoneLast() local 734 cctz::load_time_zone(name, &tz); // prime cache in BM_Zone_LoadUTCTimeZoneLast() 737 benchmark::DoNotOptimize(cctz::load_time_zone("UTC", &tz)); in BM_Zone_LoadUTCTimeZoneLast() 743 cctz::time_zone tz = cctz::utc_time_zone(); // in case we're first in BM_Zone_LoadTimeZoneFirst() local [all …]
|
/third_party/tzdata/ |
D | checktab.awk | 64 tz = $3 78 tz0 = tz 79 tztab[tz] = 1 80 tz2comments[tz] = comments 81 tz2NR[tz] = zone_NR 84 cctz = cc tz 104 tz = substr (cctz, 3) 106 comments_needed[tz] = cc 111 tz = substr (cctz, 3) 112 if (!comments_needed[tz] && tz2comments[tz]) { [all …]
|
/third_party/glib/glib/tests/ |
D | gdatetime.c | 227 GTimeZone *tz; in test_GDateTime_equal() local 242 tz = g_time_zone_new_identifier ("-03:00"); in test_GDateTime_equal() 243 g_assert_nonnull (tz); in test_GDateTime_equal() 244 dt1 = g_date_time_new (tz, 2010, 5, 24, 8, 0, 0); in test_GDateTime_equal() 245 g_time_zone_unref (tz); in test_GDateTime_equal() 256 tz = g_time_zone_new_identifier ("America/Recife"); in test_GDateTime_equal() 258 tz = g_time_zone_new_identifier ("E. South America Standard Time"); in test_GDateTime_equal() 260 g_assert_nonnull (tz); in test_GDateTime_equal() 261 dt1 = g_date_time_new (tz, 2010, 5, 24, 8, 0, 0); in test_GDateTime_equal() 262 g_time_zone_unref (tz); in test_GDateTime_equal() [all …]
|
/third_party/abseil-cpp/absl/time/ |
D | time_zone_test.cc | 26 absl::TimeZone tz; in TEST() local 27 absl::TimeZone tz2 = tz; // Copy-construct in TEST() 28 EXPECT_EQ(tz, tz2); in TEST() 29 tz2 = tz; // Copy-assign in TEST() 30 EXPECT_EQ(tz, tz2); in TEST() 50 const absl::TimeZone tz(cz); in TEST() local 51 EXPECT_EQ(cz, cctz::time_zone(tz)); in TEST() 55 absl::TimeZone tz; in TEST() local 61 const absl::TimeZone tz = absl::FixedTimeZone(123); in TEST() local 63 EXPECT_EQ(tz, absl::TimeZone(cz)); in TEST() [all …]
|
D | format_test.cc | 30 void TestFormatSpecifier(absl::Time t, absl::TimeZone tz, in TestFormatSpecifier() argument 32 EXPECT_EQ(ans, absl::FormatTime(fmt, t, tz)); in TestFormatSpecifier() 33 EXPECT_EQ("xxx " + ans, absl::FormatTime("xxx " + fmt, t, tz)); in TestFormatSpecifier() 34 EXPECT_EQ(ans + " yyy", absl::FormatTime(fmt + " yyy", t, tz)); in TestFormatSpecifier() 36 absl::FormatTime("xxx " + fmt + " yyy", t, tz)); in TestFormatSpecifier() 44 absl::TimeZone tz = absl::UTCTimeZone(); in TEST() local 48 EXPECT_EQ("", absl::FormatTime("", t, tz)); in TEST() 49 EXPECT_EQ(" ", absl::FormatTime(" ", t, tz)); in TEST() 50 EXPECT_EQ(" ", absl::FormatTime(" ", t, tz)); in TEST() 51 EXPECT_EQ("xxx", absl::FormatTime("xxx", t, tz)); in TEST() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/time/ |
D | time_zone_test.cc | 26 absl::TimeZone tz; in TEST() local 27 absl::TimeZone tz2 = tz; // Copy-construct in TEST() 28 EXPECT_EQ(tz, tz2); in TEST() 29 tz2 = tz; // Copy-assign in TEST() 30 EXPECT_EQ(tz, tz2); in TEST() 50 const absl::TimeZone tz(cz); in TEST() local 51 EXPECT_EQ(cz, cctz::time_zone(tz)); in TEST() 55 absl::TimeZone tz; in TEST() local 61 const absl::TimeZone tz = absl::FixedTimeZone(123); in TEST() local 63 EXPECT_EQ(tz, absl::TimeZone(cz)); in TEST() [all …]
|
D | format_test.cc | 30 void TestFormatSpecifier(absl::Time t, absl::TimeZone tz, in TestFormatSpecifier() argument 32 EXPECT_EQ(ans, absl::FormatTime(fmt, t, tz)); in TestFormatSpecifier() 33 EXPECT_EQ("xxx " + ans, absl::FormatTime("xxx " + fmt, t, tz)); in TestFormatSpecifier() 34 EXPECT_EQ(ans + " yyy", absl::FormatTime(fmt + " yyy", t, tz)); in TestFormatSpecifier() 36 absl::FormatTime("xxx " + fmt + " yyy", t, tz)); in TestFormatSpecifier() 44 absl::TimeZone tz = absl::UTCTimeZone(); in TEST() local 48 EXPECT_EQ("", absl::FormatTime("", t, tz)); in TEST() 49 EXPECT_EQ(" ", absl::FormatTime(" ", t, tz)); in TEST() 50 EXPECT_EQ(" ", absl::FormatTime(" ", t, tz)); in TEST() 51 EXPECT_EQ("xxx", absl::FormatTime("xxx", t, tz)); in TEST() [all …]
|
/third_party/glib/glib/ |
D | gtimezone.c | 221 g_time_zone_unref (GTimeZone *tz) in g_time_zone_unref() argument 226 ref_count = g_atomic_int_get (&tz->ref_count); in g_time_zone_unref() 232 if (tz->name != NULL) in g_time_zone_unref() 237 if G_UNLIKELY (g_atomic_int_get (&tz->ref_count) != 1) in g_time_zone_unref() 244 g_hash_table_remove (time_zones, tz->name); in g_time_zone_unref() 248 if (tz->t_info != NULL) in g_time_zone_unref() 251 for (idx = 0; idx < tz->t_info->len; idx++) in g_time_zone_unref() 253 TransitionInfo *info = &g_array_index (tz->t_info, TransitionInfo, idx); in g_time_zone_unref() 256 g_array_free (tz->t_info, TRUE); in g_time_zone_unref() 258 if (tz->transitions != NULL) in g_time_zone_unref() [all …]
|
D | gtimezone.h | 68 GTimeZone * g_time_zone_ref (GTimeZone *tz); 70 void g_time_zone_unref (GTimeZone *tz); 73 gint g_time_zone_find_interval (GTimeZone *tz, 78 gint g_time_zone_adjust_time (GTimeZone *tz, 83 const gchar * g_time_zone_get_abbreviation (GTimeZone *tz, 86 gint32 g_time_zone_get_offset (GTimeZone *tz, 89 gboolean g_time_zone_is_dst (GTimeZone *tz, 92 const gchar * g_time_zone_get_identifier (GTimeZone *tz);
|
D | gdatetime.c | 129 GTimeZone *tz; member 672 g_date_time_alloc (GTimeZone *tz) in g_date_time_alloc() argument 677 datetime->tz = g_time_zone_ref (tz); in g_date_time_alloc() 723 g_time_zone_unref (datetime->tz); in g_date_time_unref() 747 offset = g_time_zone_get_offset (datetime->tz, datetime->interval); in g_date_time_to_instant() 763 g_date_time_from_instant (GTimeZone *tz, in g_date_time_from_instant() argument 772 datetime = g_date_time_alloc (tz); in g_date_time_from_instant() 773 datetime->interval = g_time_zone_find_interval (tz, in g_date_time_from_instant() 776 offset = g_time_zone_get_offset (datetime->tz, datetime->interval); in g_date_time_from_instant() 823 was_dst = g_time_zone_is_dst (datetime->tz, datetime->interval); in g_date_time_deal_with_date_change() [all …]
|
/third_party/toybox/tests/ |
D | date.test | 9 tz=Europe/Berlin 12 testing "-d @0" "TZ=$tz date -d @0" "Thu Jan 1 01:00:00 CET 1970\n" "" "" 13 testing "-d @0x123 invalid" "TZ=$tz date -d @0x123 2>/dev/null || echo expected error" "expected er… 19 "TZ=$tz date -d 06021234" "Sun Jun 2 12:34:00 CEST $(date +%Y)\n" "" "" 21 "TZ=$tz date -d 1110143115.30" "Tue Nov 10 14:31:30 CET 2015\n" "" "" 24 "TZ=$tz date -d 060212341982" "Wed Jun 2 12:34:00 CEST 1982\n" "" "" 26 "TZ=$tz date -d 111014312015.30" "Tue Nov 10 14:31:30 CET 2015\n" "" "" 29 testing "-d 1980-01-02" "TZ=$tz date -d 1980-01-02" "Wed Jan 2 00:00:00 CET 1980\n" "" "" 30 testing "-d 1980-01-02 12:34" "TZ=$tz date -d '1980-01-02 12:34'" "Wed Jan 2 12:34:00 CET 1980\n" … 31 testing "-d 1980-01-02 12:34:56" "TZ=$tz date -d '1980-01-02 12:34:56'" "Wed Jan 2 12:34:56 CET 19… [all …]
|
/third_party/musl/libc-test/src/functionalext/supplement/time/ |
D | gmtime_sup.c | 23 const char *tz; member 479 const char *tz = gResultData[i].tz; in gmtime_0100() local 482 char *str = strrchr(tz, TIME_ZONE_SUB_TAG); in gmtime_0100() 486 handlerChar = tz; in gmtime_0100() 489 handlerChar = tz; in gmtime_0100() 522 const char *tz = gResultData[i].tz; in gmtime64_0100() local 525 char *str = strrchr(tz, TIME_ZONE_SUB_TAG); in gmtime64_0100() 529 handlerChar = tz; in gmtime64_0100() 532 handlerChar = tz; in gmtime64_0100()
|
D | gmtime_r_sup.c | 23 const char *tz; member 479 const char *tz = gResultData[i].tz; in gmtime_r_0100() local 482 char *str = strrchr(tz, TIME_ZONE_SUB_TAG); in gmtime_r_0100() 486 handlerChar = tz; in gmtime_r_0100() 489 handlerChar = tz; in gmtime_r_0100() 522 const char *tz = gResultData[i].tz; in gmtime64_r_0100() local 525 char *str = strrchr(tz, TIME_ZONE_SUB_TAG); in gmtime64_r_0100() 529 handlerChar = tz; in gmtime64_r_0100() 532 handlerChar = tz; in gmtime64_r_0100()
|
D | mktime_sup.c | 21 const char *tz; member 475 const char *tz = gResultData[i].tz; in mktime_0100() local 478 char *str = strrchr(tz, TIME_ZONE_SUB_TAG); in mktime_0100() 482 handlerChar = tz; in mktime_0100() 485 handlerChar = tz; in mktime_0100()
|
/third_party/musl/libc-test/src/functionalext/common/ |
D | time_test_data.h | 26 const char *tz; member 31 const char *tz; member 36 const char *tz; member 40 static const char *test_handle_path(const char *tz) in test_handle_path() argument 42 const char *p = tz; in test_handle_path() 43 if (tz) { in test_handle_path() 45 char *str = strrchr(tz, TIME_ZONE_SUB_TAG); in test_handle_path()
|
/third_party/boost/boost/date_time/local_time/ |
D | local_date_time.hpp | 83 boost::shared_ptr<tz_type> tz) : in local_date_time_base() argument 85 zone_(tz) in local_date_time_base() 103 boost::shared_ptr<tz_type> tz, in local_date_time_base() argument 105 …_time<utc_time_type,time_system_type>(construction_adjustment(utc_time_type(d, td), tz, dst_flag)), in local_date_time_base() 106 zone_(tz) in local_date_time_base() 108 if(tz != boost::shared_ptr<tz_type>() && tz->has_dst()){ in local_date_time_base() 111 time_is_dst_result result = check_dst(d, td, tz); in local_date_time_base() 144 boost::shared_ptr<tz_type> tz, in local_date_time_base() argument 148 zone_(tz) in local_date_time_base() 150 time_is_dst_result result = check_dst(d, td, tz); in local_date_time_base() [all …]
|
/third_party/boost/libs/locale/src/util/ |
D | timezone.hpp | 16 inline int parse_tz(std::string const &tz) in parse_tz() argument 20 for(unsigned i=0;i<tz.size();i++) { in parse_tz() 21 if('a' <= tz[i] && tz[i] <= 'z') in parse_tz() 22 ltz += tz[i]-'a' + 'A'; in parse_tz() 23 else if(tz[i]==' ') in parse_tz() 26 ltz+=tz[i]; in parse_tz()
|
/third_party/skia/third_party/externals/icu/source/tools/tzcode/ |
D | icuzdump.cpp | 119 void setTimeZone(TimeZone* tz) { in setTimeZone() argument 120 timezone = tz; in setTimeZone() 240 TimeZone* tz = NULL; in next() local 245 tz = TimeZone::createTimeZone(*zid); in next() 251 tz = TimeZone::createTimeZone((const UnicodeString&)zids[idx]); in next() 254 tz = TimeZone::createDefault(); in next() 259 return tz; in next() 376 TimeZone* tz = zit->next(); in main() local 377 if (tz == NULL) { in main() 380 dumper.setTimeZone(tz); in main() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/tools/tzcode/ |
D | icuzdump.cpp | 119 void setTimeZone(TimeZone* tz) { in setTimeZone() argument 120 timezone = tz; in setTimeZone() 240 TimeZone* tz = NULL; in next() local 245 tz = TimeZone::createTimeZone(*zid); in next() 251 tz = TimeZone::createTimeZone((const UnicodeString&)zids[idx]); in next() 254 tz = TimeZone::createDefault(); in next() 259 return tz; in next() 376 TimeZone* tz = zit->next(); in main() local 377 if (tz == NULL) { in main() 380 dumper.setTimeZone(tz); in main() [all …]
|
/third_party/icu/icu4c/source/tools/tzcode/ |
D | icuzdump.cpp | 119 void setTimeZone(TimeZone* tz) { in setTimeZone() argument 120 timezone = tz; in setTimeZone() 240 TimeZone* tz = NULL; in next() local 245 tz = TimeZone::createTimeZone(*zid); in next() 251 tz = TimeZone::createTimeZone((const UnicodeString&)zids[idx]); in next() 254 tz = TimeZone::createDefault(); in next() 259 return tz; in next() 376 TimeZone* tz = zit->next(); in main() local 377 if (tz == NULL) { in main() 380 dumper.setTimeZone(tz); in main() [all …]
|