Home
last modified time | relevance | path

Searched refs:tz (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DTimeZoneTest.java40 TimeZone tz = TimeZone.getTimeZone("PST"); in testGetOffset() local
41 int offset = tz.getOffset(1, 2004, 0, 01, 1, 0); in testGetOffset()
49 TimeZone tz = TimeZone.getTimeZone("PST"); in testSetRawOffset() local
50 int value = tz.getRawOffset(); in testSetRawOffset()
52 tz.setRawOffset(value1); in testSetRawOffset()
53 int result = tz.getRawOffset(); in testSetRawOffset()
62 TimeZone tz = TimeZone.getTimeZone("PST"); in testGetRawOffset() local
63 int offset = tz.getRawOffset(); in testGetRawOffset()
71 TimeZone tz = TimeZone.getTimeZone("PST"); in testGetID() local
72 assertEquals("PST", tz.getID()); in testGetID()
[all …]
/external/v8/src/
Ddateparser-inl.h22 TimeZoneComposer tz; in Parse() local
75 DateToken next_unhandled_token = ParseES5DateTime(&scanner, &day, &time, &tz); in Parse()
102 } else if (tz.IsExpecting(n)) { in Parse()
103 tz.SetAbsoluteMinute(n); in Parse()
127 tz.Set(value); in Parse()
135 } else if (token.IsAsciiSign() && (tz.IsUTC() || !time.IsEmpty())) { in Parse()
137 tz.SetSign(token.ascii_sign()); in Parse()
149 tz.SetAbsoluteHour(n); in Parse()
151 tz.SetAbsoluteMinute(kNone); in Parse()
154 tz.SetAbsoluteHour(n); in Parse()
[all …]
/external/strace/tests/
Dxettimeofday.c40 struct timezone tz; in main() member
52 if (syscall(__NR_gettimeofday, &t.tv, &t.tz)) in main()
57 t.tz.tz_minuteswest, t.tz.tz_dsttime); in main()
61 if (!settimeofday(&t.tv, &t.tz)) in main()
67 t.tz.tz_minuteswest, t.tz.tz_dsttime); in main()
/external/icu/icu4c/source/tools/tzcode/
Dicuzdump.cpp115 void setTimeZone(TimeZone* tz) { in setTimeZone() argument
116 timezone = tz; in setTimeZone()
236 TimeZone* tz = NULL; in next() local
241 tz = TimeZone::createTimeZone(*zid); in next()
247 tz = TimeZone::createTimeZone((const UnicodeString&)zids[idx]); in next()
250 tz = TimeZone::createDefault(); in next()
255 return tz; in next()
372 TimeZone* tz = zit->next(); in main() local
373 if (tz == NULL) { in main()
376 dumper.setTimeZone(tz); in main()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/
DTimeZoneTest.java466 TimeZone tz = TimeZone.getTimeZone(timezones[i]); in TestDisplayName2() local
467 String displayName0 = tz.getDisplayName(locale); in TestDisplayName2()
469 dt.setTimeZone(tz); in TestDisplayName2()
471 logln(locale.getDisplayName() + ", " + tz.getID() + ": " + displayName0); in TestDisplayName2()
477 if (tz.inDaylightTime(now)) { in TestDisplayName2()
479 displayName0 = tz.getDisplayName(true, TimeZone.LONG_GENERIC, locale); in TestDisplayName2()
482 errln(locale.getDisplayName() + ", " + tz.getID() + in TestDisplayName2()
644 void _testUsingBinarySearch(SimpleTimeZone tz, long min, long max, long expectedBoundary) in _testUsingBinarySearch() argument
647 boolean startsInDST = tz.inDaylightTime(new Date(min)); in _testUsingBinarySearch()
649 if (tz.inDaylightTime(new Date(max)) == startsInDST) { in _testUsingBinarySearch()
[all …]
DTimeZoneBoundaryTest.java146 long expectedBoundary, TimeZone tz) in findDaylightBoundaryUsingTimeZone() argument
156 if (tz.inDaylightTime(d) != startsInDST) in findDaylightBoundaryUsingTimeZone()
158 errln("FAIL: " + tz.getID() + " inDaylightTime(" + in findDaylightBoundaryUsingTimeZone()
163 if (tz.inDaylightTime(new Date(max)) == startsInDST) in findDaylightBoundaryUsingTimeZone()
165 errln("FAIL: " + tz.getID() + " inDaylightTime(" + in findDaylightBoundaryUsingTimeZone()
173 boolean isIn = tz.inDaylightTime(new Date(mid)); in findDaylightBoundaryUsingTimeZone()
184 logln(tz.getID() + " Before: " + showDate(min, tz)); in findDaylightBoundaryUsingTimeZone()
185 logln(tz.getID() + " After: " + showDate(max, tz)); in findDaylightBoundaryUsingTimeZone()
190 fmt.setTimeZone(tz); in findDaylightBoundaryUsingTimeZone()
651 void _testUsingBinarySearch(SimpleTimeZone tz, Date d, long expectedBoundary) in _testUsingBinarySearch() argument
[all …]
DTimeZoneRegression.java106 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4084933() local
108 long offset1 = tz.getOffset(1, in Test4084933()
110 long offset2 = tz.getOffset(1, in Test4084933()
113 long offset3 = tz.getOffset(1, in Test4084933()
115 long offset4 = tz.getOffset(1, in Test4084933()
123 long offset5 = tz.getOffset(1, in Test4084933()
125 long offset6 = tz.getOffset(1, in Test4084933()
128 long offset7 = tz.getOffset(1, in Test4084933()
130 long offset8 = tz.getOffset(1, in Test4084933()
309 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4126678() local
[all …]
/external/icu/icu4c/source/test/intltest/
Dtztest.cpp235 TimeZoneTest::findTransition(const TimeZone& tz, in findTransition() argument
239 UBool startsInDST = tz.inDaylightTime(min, ec); in findTransition()
241 if (tz.inDaylightTime(max, ec) == startsInDST) { in findTransition()
242 …logln("Error: " + tz.getID(id) + ".inDaylightTime(" + dateToString(min) + ") = " + (startsInDST?"T… in findTransition()
249 if (tz.inDaylightTime(mid, ec) == startsInDST) { in findTransition()
258 logln(tz.getID(id) + " Before: " + min/1000 + " = " + in findTransition()
259 dateToString(min,s,tz)); in findTransition()
260 logln(tz.getID(id) + " After: " + max/1000 + " = " + in findTransition()
261 dateToString(max,s,tz)); in findTransition()
265 TimeZoneTest::testUsingBinarySearch(const TimeZone& tz, in testUsingBinarySearch() argument
[all …]
Dtzbdtest.cpp116 …findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary, TimeZone* tz) in findDaylightBoundaryUsingTimeZone() argument
122 if (tz->inDaylightTime(d, status) != startsInDST) { in findDaylightBoundaryUsingTimeZone()
123 …dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(d) + ") != " + (startsInDS… in findDaylightBoundaryUsingTimeZone()
127 if (tz->inDaylightTime(max, status) == startsInDST) { in findDaylightBoundaryUsingTimeZone()
128 …dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(max) + ") != " + (startsIn… in findDaylightBoundaryUsingTimeZone()
134 UBool isIn = tz->inDaylightTime(mid, status); in findDaylightBoundaryUsingTimeZone()
143 logln(tz->getID(str) + " Before: " + showDate(min)); in findDaylightBoundaryUsingTimeZone()
144 logln(tz->getID(str) + " After: " + showDate(max)); in findDaylightBoundaryUsingTimeZone()
337 TimeZone *tz; in TestBoundaries() local
338 TimeZone::setDefault(*(tz = TimeZone::createTimeZone("PST"))); in TestBoundaries()
[all …]
Dtzregts.cpp87 UDate TimeZoneRegressionTest::findTransitionBinary(const SimpleTimeZone& tz, UDate min, UDate max) { in findTransitionBinary() argument
89 UBool startsInDST = tz.inDaylightTime(min, status); in findTransitionBinary()
91 if (tz.inDaylightTime(max, status) == startsInDST) { in findTransitionBinary()
98 if (tz.inDaylightTime(mid, status) == startsInDST) { in findTransitionBinary()
108 UDate TimeZoneRegressionTest::findTransitionStepwise(const SimpleTimeZone& tz, UDate min, UDate max… in findTransitionStepwise() argument
110 UBool startsInDST = tz.inDaylightTime(min, status); in findTransitionStepwise()
113 if (tz.inDaylightTime(min, status) != startsInDST) { in findTransitionStepwise()
209 TimeZone *tz = TimeZone::createTimeZone("PST"); in Test4084933() local
211 int32_t offset1 = tz->getOffset(1, in Test4084933()
213 int32_t offset2 = tz->getOffset(1, in Test4084933()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneTest.java462 TimeZone tz = TimeZone.getTimeZone(timezones[i]); in TestDisplayName2() local
463 String displayName0 = tz.getDisplayName(locale); in TestDisplayName2()
465 dt.setTimeZone(tz); in TestDisplayName2()
467 logln(locale.getDisplayName() + ", " + tz.getID() + ": " + displayName0); in TestDisplayName2()
473 if (tz.inDaylightTime(now)) { in TestDisplayName2()
475 displayName0 = tz.getDisplayName(true, TimeZone.LONG_GENERIC, locale); in TestDisplayName2()
478 errln(locale.getDisplayName() + ", " + tz.getID() + in TestDisplayName2()
640 void _testUsingBinarySearch(SimpleTimeZone tz, long min, long max, long expectedBoundary) in _testUsingBinarySearch() argument
643 boolean startsInDST = tz.inDaylightTime(new Date(min)); in _testUsingBinarySearch()
645 if (tz.inDaylightTime(new Date(max)) == startsInDST) { in _testUsingBinarySearch()
[all …]
DTimeZoneBoundaryTest.java142 long expectedBoundary, TimeZone tz) in findDaylightBoundaryUsingTimeZone() argument
152 if (tz.inDaylightTime(d) != startsInDST) in findDaylightBoundaryUsingTimeZone()
154 errln("FAIL: " + tz.getID() + " inDaylightTime(" + in findDaylightBoundaryUsingTimeZone()
159 if (tz.inDaylightTime(new Date(max)) == startsInDST) in findDaylightBoundaryUsingTimeZone()
161 errln("FAIL: " + tz.getID() + " inDaylightTime(" + in findDaylightBoundaryUsingTimeZone()
169 boolean isIn = tz.inDaylightTime(new Date(mid)); in findDaylightBoundaryUsingTimeZone()
180 logln(tz.getID() + " Before: " + showDate(min, tz)); in findDaylightBoundaryUsingTimeZone()
181 logln(tz.getID() + " After: " + showDate(max, tz)); in findDaylightBoundaryUsingTimeZone()
186 fmt.setTimeZone(tz); in findDaylightBoundaryUsingTimeZone()
647 void _testUsingBinarySearch(SimpleTimeZone tz, Date d, long expectedBoundary) in _testUsingBinarySearch() argument
[all …]
DTimeZoneRegression.java102 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4084933() local
104 long offset1 = tz.getOffset(1, in Test4084933()
106 long offset2 = tz.getOffset(1, in Test4084933()
109 long offset3 = tz.getOffset(1, in Test4084933()
111 long offset4 = tz.getOffset(1, in Test4084933()
119 long offset5 = tz.getOffset(1, in Test4084933()
121 long offset6 = tz.getOffset(1, in Test4084933()
124 long offset7 = tz.getOffset(1, in Test4084933()
126 long offset8 = tz.getOffset(1, in Test4084933()
305 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4126678() local
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DDangiCalendar.java75 RuleBasedTimeZone tz = new RuleBasedTimeZone("KOREA_ZONE", initialTimeZone);
76 tz.addTransitionRule(rule1897);
77 tz.addTransitionRule(rule1898to1911);
78 tz.addTransitionRule(ruleFrom1912);
79 tz.freeze(); in tz.freeze()
80 KOREA_ZONE = tz;
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DDangiCalendar.java73 RuleBasedTimeZone tz = new RuleBasedTimeZone("KOREA_ZONE", initialTimeZone);
74 tz.addTransitionRule(rule1897);
75 tz.addTransitionRule(rule1898to1911);
76 tz.addTransitionRule(ruleFrom1912);
77 tz.freeze(); in tz.freeze()
78 KOREA_ZONE = tz;
/external/mesa3d/src/mesa/math/
Dm_norm_tmp.h61 GLfloat tx, ty, tz; in TAG() local
66 tz = ux * m8 + uy * m9 + uz * m10; in TAG()
69 GLdouble len = tx*tx + ty*ty + tz*tz; in TAG()
74 out[i][2] = tz * scale; in TAG()
90 GLfloat tx, ty, tz; in TAG() local
95 tz = ux * m8 + uy * m9 + uz * m10; in TAG()
101 out[i][2] = tz * len; in TAG()
128 GLfloat tx, ty, tz; in TAG() local
133 tz = uz * m10; in TAG()
136 GLdouble len = tx*tx + ty*ty + tz*tz; in TAG()
[all …]
/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DTimeZoneNameTest.java117 TimeZone tz = TimeZone.getTimeZone(tzid); in checkDisplayName() local
118 String name = tz.getDisplayName(daylight, style, loc); in checkDisplayName()
125 + " for time zone " + tz.getID() + " in locale " + loc in checkDisplayName()
130 + " for time zone " + tz.getID() + " in locale " + loc in checkDisplayName()
137 + " for time zone " + tz.getID() + " in locale " + loc in checkDisplayName()
142 name = tz.getDisplayName(daylight, style, icuLoc); in checkDisplayName()
146 + " for time zone " + tz.getID() + " in locale " + icuLoc in checkDisplayName()
150 + " for time zone " + tz.getID() + " in locale " + icuLoc in checkDisplayName()
/external/icu/icu4c/source/samples/date/
Ddate.c47 static void date(UDate when, const UChar *tz, UDateFormatStyle style, const char *format, UErrorCod…
48 …onst char *format, UDateFormatStyle style, const char *parse, const UChar *tz, UErrorCode *status);
69 const UChar *tz = 0; in main() local
92 tz = GMT_ID; in main()
161 when = getWhen(millis, seconds, format, style, parse, tz, &status); in main()
167 date(when, tz, style, format, &status); in main()
241 const UChar *tz, in date() argument
263 fmt = udat_open(style, style, 0, tz, -1,NULL,0, status); in date()
292 … UDateFormatStyle style, const char *parse, const UChar *tz, UErrorCode *status) { in getWhen() argument
318 fmt = udat_open(style, style, 0, tz, -1,NULL,0, status); in getWhen()
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timezone/
DICUZDump.java43 private TimeZoneImpl tz = null; field in ICUZDump
70 this.tz = new TimeZoneImpl(tzimpl); in setTimeZone()
82 if (tz == null) { in dump()
93 int offset = tz.getOffset(t); in dump()
94 boolean inDst = tz.inDaylightTime(t); in dump()
97 int newOffset = tz.getOffset(newt); in dump()
98 boolean newInDst = tz.inDaylightTime(newt); in dump()
109 int medOffset = tz.getOffset(medt); in dump()
110 boolean medInDst = tz.inDaylightTime(medt); in dump()
117 w.write(formatter.format(lot, offset, tz.inDaylightTime(lot))); in dump()
[all …]
/external/libvncserver/compat/msvc/sys/
Dtime.h32 static __inline int gettimeofday(struct timeval *tv, struct timezone *tz) in gettimeofday() argument
52 if (NULL != tz) in gettimeofday()
59 tz->tz_minuteswest = _timezone / 60; in gettimeofday()
60 tz->tz_dsttime = _daylight; in gettimeofday()
/external/icu/android_icu4j/src/main/java/android/icu/impl/duration/
DBasicDurationFormatter.java87 public DurationFormatter withTimeZone(TimeZone tz) {
88 if (!tz.equals(timeZone)) {
89 PeriodBuilder newBuilder = builder.withTimeZone(tz);
92 : fallback.withTimeZone(tz);
95 localeName, tz);
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
DBasicDurationFormatter.java86 public DurationFormatter withTimeZone(TimeZone tz) {
87 if (!tz.equals(timeZone)) {
88 PeriodBuilder newBuilder = builder.withTimeZone(tz);
91 : fallback.withTimeZone(tz);
94 localeName, tz);
/external/toybox/toys/posix/
Ddate.c55 char *tz;
82 if (!(TT.tz = getenv("TZ"))) TT.tz = (char *)1; in utzset()
89 if (TT.tz) { in utzreset()
90 if (TT.tz != (char *)1) setenv("TZ", TT.tz, 1); in utzreset()
/external/pdfium/xfa/src/fxfa/src/common/
Dxfa_localemgr.h56 virtual void SetTimeZone(FX_TIMEZONE& tz) = 0;
58 virtual void GetTimeZone(FX_TIMEZONE& tz) = 0;
64 virtual void SetTimeZone(FX_TIMEZONE& tz);
65 virtual void GetTimeZone(FX_TIMEZONE& tz);
/external/jetty/src/java/org/eclipse/jetty/util/
DDateCache.java112 public synchronized void setTimeZone(TimeZone tz) in setTimeZone() argument
114 setTzFormatString(tz); in setTimeZone()
130 _tzFormat.setTimeZone(tz); in setTimeZone()
131 _minFormat.setTimeZone(tz); in setTimeZone()
153 private synchronized void setTzFormatString(final TimeZone tz ) in setTzFormatString() argument
160 int tzOffset = tz.getRawOffset(); in setTzFormatString()

12345678910>>...13