Home
last modified time | relevance | path

Searched full:tz (Results 1 – 25 of 1362) sorted by relevance

12345678910>>...55

/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_format_test.cc37 #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 …]
Dtime_zone_lookup_test.cc636 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 …]
Dcctz_benchmark.cc716 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 …]
Dtime_zone_lookup.cc108 bool load_time_zone(const std::string& name, time_zone* tz) { in load_time_zone() argument
109 return time_zone::Impl::LoadTimeZone(name, tz); in load_time_zone()
117 time_zone tz; in fixed_time_zone() local
118 load_time_zone(FixedOffsetToName(offset), &tz); in fixed_time_zone()
119 return tz; in fixed_time_zone()
144 // Allow ${TZ} to override to default zone. in local_time_zone()
147 _dupenv_s(&tz_env, nullptr, "TZ"); in local_time_zone()
149 tz_env = std::getenv("TZ"); in local_time_zone()
176 time_zone tz; in local_time_zone() local
177 load_time_zone(name, &tz); // Falls back to UTC. in local_time_zone()
[all …]
/third_party/toybox/tests/
Ddate.test7 # Use a consistent TZ for these tests, but not GMT/UTC because that
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" …
[all …]
Dtouch.test35 testing "-t -" "TZ=utc touch -t 200109090146.40 - > walrus && TZ=utc date -r walrus +%s" \
67 testing "-a" "TZ=utc touch -t 197101020304 walrus &&
68 TZ=utc touch -t 197203040506 -a walrus && TZ=utc stat -c '%X %Y' walrus" \
70 testing "-m" "TZ=utc touch -t 197101020304 walrus &&
71 TZ=utc touch -t 197203040506 -m walrus && TZ=utc stat -c '%X %Y' walrus" \
73 testing "-am" "TZ=utc touch -t 197101020304 walrus &&
74 TZ=utc touch -t 197203040506 -am walrus && TZ=utc stat -c '%X %Y' walrus" \
/third_party/skia/third_party/externals/abseil-cpp/absl/time/
Dtime_zone_test.cc26 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 …]
Dformat_test.cc30 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/tzdata/
Dchecktab.awk1 # Check tz tables for consistency.
63 tz = $3
79 tz0 = tz
80 tztab[tz] = 1
81 tz2NR[tz] = zone_NR
130 tz = rules = ""
132 tz = $2
142 if (src != dst) tz = $3
150 if (tz && tz ~ /\// && tz !~ /^Etc\//) {
151 if (!tztab[tz] && FILENAME != "backward") {
[all …]
Dtzselect.ksh2 # Ask the user about the time zone, and output the resulting TZ value to stdout.
7 REPORT_BUGS_TO=tz@iana.org
302 echo >&2 'Please select a continent, ocean, "coord", or "TZ".'
324 "TZ - I want to specify the timezone using the Posix TZ format."
334 TZ)
335 # Ask the user for a Posix TZ string. Check that it conforms.
338 'of the TZ environment variable.'
343 read TZ
344 $AWK -v TZ="$TZ" 'BEGIN {
355 if (TZ ~ tzpattern) exit 1
[all …]
Dnewtzset.3.txt9 timezone_t tzalloc(char const *TZ);
11 void tzfree(timezone_t tz);
19 by TZ. If TZ is not a valid timezone description, or if the object
22 The tzfree function frees a timezone object tz, which should have been
24 pointers that tz was used to set.
26 The tzset function acts like tzalloc(getenv("TZ")), except it saves any
32 If TZ is null, the best available approximation to local (wall clock)
34 time conversion information directory, is used. If TZ is the empty
37 seconds. If TZ is nonnull and nonempty:
47 When TZ is used as a pathname, if it begins with a slash, it is used as
[all …]
Detcetera6 # These entries are for uses not otherwise covered by the tz database.
8 # support for POSIX-style TZ strings. On such platforms these entries
13 # unnecessary as settings for the TZ environment variable. E.g.,
14 # instead of TZ='Etc/GMT+4' one can use the POSIX setting TZ='<-04>+4'.
16 # Do not use a POSIX TZ setting like TZ='GMT+4', which is four hours
36 # Be consistent with POSIX TZ settings in the Zone names,
39 # positive signs east of Greenwich. For example, TZ='Etc/GMT+4' uses
Dtz-link.html24 <li>The <code><abbr>tz</abbr></code> database product and process
26 <li><a href="#tzdb">The <code><abbr>tz</abbr></code> database</a></li>
27 <li><a href="#download">Downloading the <code><abbr>tz</abbr></code> database</a></li>
28 <li><a href="#changes">Changes to the <code><abbr>tz</abbr></code> database</a></li>
29 <li><a href="#commentary">Commentary on the <code><abbr>tz</abbr></code> database</a></li>
32 <li>Uses of the <code><abbr>tz</abbr></code> database
34 …<li><a href="#web">Web sites using recent versions of the <code><abbr>tz</abbr></code> database</a…
35 <li><a href="#protocols">Network protocols for <code><abbr>tz</abbr></code> data</a></li>
36 <li><a href="#compilers">Other <code><abbr>tz</abbr></code> compilers</a></li>
38 <li><a href="#software">Other <code><abbr>tz</abbr></code>-based time zone software</a></li>
[all …]
DCONTRIBUTING1 # Contributing to the tz code and data
12 to <tz@iana.org> for use in the future. In your email, please give
23 "Theory and pragmatics of the tz code and data"
26 <https://mm.icann.org/pipermail/tz/> for examples of patches that tend
44 git clone https://github.com/eggert/tz.git
45 cd tz
83 * After reviewing the patch files, send the patches to <tz@iana.org>
90 <https://mm.icann.org/pipermail/tz/2018-February/026122.html>.
/third_party/icu/icu4c/source/tools/tzcode/
Dtzselect.ksh5 # Ask the user about the time zone, and output the resulting TZ value to stdout.
96 'none - I want to specify the time zone using the Posix TZ format.'
113 # Ask the user for a Posix TZ string. Check that it conforms.
116 'of the TZ environment variable.'
119 read TZ
120 $AWK -v TZ="$TZ" 'BEGIN {
128 if (TZ ~ tzpattern) exit 1
132 echo >&2 "\`$TZ' is not a conforming" \
135 TZ_for_date=$TZ;;
218 # Determine TZ from country and region.
[all …]
Dicuzdump.cpp119 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/skia/third_party/externals/icu/source/tools/tzcode/
Dtzselect.ksh5 # Ask the user about the time zone, and output the resulting TZ value to stdout.
96 'none - I want to specify the time zone using the Posix TZ format.'
113 # Ask the user for a Posix TZ string. Check that it conforms.
116 'of the TZ environment variable.'
119 read TZ
120 $AWK -v TZ="$TZ" 'BEGIN {
128 if (TZ ~ tzpattern) exit 1
132 echo >&2 "\`$TZ' is not a conforming" \
135 TZ_for_date=$TZ;;
218 # Determine TZ from country and region.
[all …]
Dicuzdump.cpp119 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/
Dtzselect.ksh5 # Ask the user about the time zone, and output the resulting TZ value to stdout.
96 'none - I want to specify the time zone using the Posix TZ format.'
113 # Ask the user for a Posix TZ string. Check that it conforms.
116 'of the TZ environment variable.'
119 read TZ
120 $AWK -v TZ="$TZ" 'BEGIN {
128 if (TZ ~ tzpattern) exit 1
132 echo >&2 "\`$TZ' is not a conforming" \
135 TZ_for_date=$TZ;;
218 # Determine TZ from country and region.
[all …]
Dicuzdump.cpp119 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/toybox/porting/liteos_a/toys/posix/
Ddate.c29 All input formats can be preceded by TZ="id" to set the input time zone
30 separately from the output time zone. Otherwise $TZ sets both.
59 // Handles any leading `TZ="blah" ` in the input string.
64 if (!strncmp(str, "TZ=\"", 4)) { in parse_date()
71 // Switch $TZ. in parse_date()
72 old_tz = getenv("TZ"); in parse_date()
73 setenv("TZ", new_tz, 1); in parse_date()
79 if (old_tz) setenv("TZ", old_tz, 1); in parse_date()
80 else unsetenv("TZ"); in parse_date()
116 *tz = NULL; in date_main() local
[all …]
/third_party/toybox/toys/posix/
Ddate.c32 All input formats can be preceded by TZ="id" to set the input time zone
33 separately from the output time zone. Otherwise $TZ sets both.
62 // Handles any leading `TZ="blah" ` in the input string.
67 if (!strncmp(str, "TZ=\"", 4)) { in parse_date()
74 // Switch $TZ. in parse_date()
75 old_tz = getenv("TZ"); in parse_date()
76 setenv("TZ", new_tz, 1); in parse_date()
82 if (old_tz) setenv("TZ", old_tz, 1); in parse_date()
83 else unsetenv("TZ"); in parse_date()
119 *tz = NULL; in date_main() local
[all …]
/third_party/musl/libc-test/src/functionalext/common/
Dtime_test_data.h24 const char *tz; member
29 const char *tz; member
34 const char *tz; member
38 static const char *test_handle_path(const char *tz) in test_handle_path() argument
40 const char *p = tz; in test_handle_path()
41 if (tz) { in test_handle_path()
43 char *str = strrchr(tz, TIME_ZONE_SUB_TAG); in test_handle_path()
/third_party/python/Modules/clinic/
D_datetimemodule.c.h57 "now($type, /, tz=None)\n"
60 "Returns new datetime object representing current time local to tz.\n"
62 " tz\n"
65 "If no tz is specified, uses local timezone.");
71 datetime_datetime_now_impl(PyTypeObject *type, PyObject *tz);
77 static const char * const _keywords[] = {"tz", NULL}; in datetime_datetime_now()
81 PyObject *tz = Py_None; in datetime_datetime_now() local
90 tz = args[0]; in datetime_datetime_now()
92 return_value = datetime_datetime_now_impl(type, tz); in datetime_datetime_now()
/third_party/icu/tools/release/c/os-mapping/
DtestTimezones.sh17 ICUTime=`LD_LIBRARY_PATH=../dev-icu/icu/source/lib/ TZ=$tzname ./checkTimezone`
18 systemHour=`TZ=$tzname date +%I`
23 systemTimeShort=`TZ=$tzname date +%b\ %d,\ %Y`
25 systemTimeAMPM=`TZ=$tzname date +%p`
30 systemTime=`TZ=$tzname date +%b\ %d,\ %Y\ %r`
33 echo TZ=$tzname
39 echo --TZ=$tzname
43 echo TZ=$tzname

12345678910>>...55