/external/python/dateutil/dateutil/test/ |
D | test_tz.py | 27 from dateutil import tz as tz unknown 196 t0_u = datetime(2012, 3, 31, 15, 30, tzinfo=tz.tzutc()) # AEST 197 t1_u = datetime(2012, 3, 31, 16, 30, tzinfo=tz.tzutc()) # AEDT 218 t0_u = datetime(2012, 10, 6, 15, 30, tzinfo=tz.tzutc()) # AEST 219 t1_u = datetime(2012, 10, 6, 16, 30, tzinfo=tz.tzutc()) # AEDT 240 t0_u = datetime(2011, 11, 6, 5, 30, tzinfo=tz.tzutc()) 241 t1_u = datetime(2011, 11, 6, 6, 30, tzinfo=tz.tzutc()) 263 t0_u = datetime(2011, 3, 13, 6, 30, tzinfo=tz.tzutc()) 264 t1_u = datetime(2011, 3, 13, 7, 30, tzinfo=tz.tzutc()) 284 UTC = tz.tzutc() [all …]
|
D | test_imports.py | 101 import dateutil.tz 104 from dateutil import tz 107 from dateutil.tz import tzutc 108 from dateutil.tz import tzoffset 109 from dateutil.tz import tzlocal 110 from dateutil.tz import tzfile 111 from dateutil.tz import tzrange 112 from dateutil.tz import tzstr 113 from dateutil.tz import tzical 114 from dateutil.tz import gettz [all …]
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/ |
D | TimeZoneTest.java | 42 TimeZone tz = TimeZone.getTimeZone("PST"); in testGetOffset() local 43 int offset = tz.getOffset(1, 2004, 0, 01, 1, 0); in testGetOffset() 51 TimeZone tz = TimeZone.getTimeZone("PST"); in testSetRawOffset() local 52 int value = tz.getRawOffset(); in testSetRawOffset() 54 tz.setRawOffset(value1); in testSetRawOffset() 55 int result = tz.getRawOffset(); in testSetRawOffset() 64 TimeZone tz = TimeZone.getTimeZone("PST"); in testGetRawOffset() local 65 int offset = tz.getRawOffset(); in testGetRawOffset() 73 TimeZone tz = TimeZone.getTimeZone("PST"); in testGetID() local 74 assertEquals("PST", tz.getID()); in testGetID() [all …]
|
/external/linux-kselftest/tools/testing/selftests/timers/ |
D | set-tz.c | 30 struct timezone tz; in set_tz() local 32 tz.tz_minuteswest = min; in set_tz() 33 tz.tz_dsttime = dst; in set_tz() 35 return settimeofday(0, &tz); in set_tz() 40 struct timezone tz; in get_tz_min() local 43 memset(&tz, 0, sizeof(tz)); in get_tz_min() 44 gettimeofday(&tv, &tz); in get_tz_min() 45 return tz.tz_minuteswest; in get_tz_min() 50 struct timezone tz; in get_tz_dst() local 53 memset(&tz, 0, sizeof(tz)); in get_tz_dst() [all …]
|
/external/strace/tests-mx32/ |
D | xettimeofday.c | 41 TAIL_ALLOC_OBJECT_CONST_PTR(struct timezone, tz); in main() 49 if (syscall(__NR_gettimeofday, tv, tz)) in main() 55 tz->tz_minuteswest, tz->tz_dsttime); in main() 59 assert(syscall(__NR_settimeofday, tv, tz) == -1); in main() 64 tz->tz_minuteswest, tz->tz_dsttime, sprintrc(-1)); in main() 68 assert(syscall(__NR_settimeofday, tv, tz) == -1); in main() 73 tz->tz_minuteswest, tz->tz_dsttime, sprintrc(-1)); in main() 77 assert(syscall(__NR_settimeofday, tv, tz) == -1); in main() 82 tz->tz_minuteswest, tz->tz_dsttime, sprintrc(-1)); in main()
|
/external/strace/tests/ |
D | xettimeofday.c | 41 TAIL_ALLOC_OBJECT_CONST_PTR(struct timezone, tz); in main() 49 if (syscall(__NR_gettimeofday, tv, tz)) in main() 55 tz->tz_minuteswest, tz->tz_dsttime); in main() 59 assert(syscall(__NR_settimeofday, tv, tz) == -1); in main() 64 tz->tz_minuteswest, tz->tz_dsttime, sprintrc(-1)); in main() 68 assert(syscall(__NR_settimeofday, tv, tz) == -1); in main() 73 tz->tz_minuteswest, tz->tz_dsttime, sprintrc(-1)); in main() 77 assert(syscall(__NR_settimeofday, tv, tz) == -1); in main() 82 tz->tz_minuteswest, tz->tz_dsttime, sprintrc(-1)); in main()
|
/external/strace/tests-m32/ |
D | xettimeofday.c | 41 TAIL_ALLOC_OBJECT_CONST_PTR(struct timezone, tz); in main() 49 if (syscall(__NR_gettimeofday, tv, tz)) in main() 55 tz->tz_minuteswest, tz->tz_dsttime); in main() 59 assert(syscall(__NR_settimeofday, tv, tz) == -1); in main() 64 tz->tz_minuteswest, tz->tz_dsttime, sprintrc(-1)); in main() 68 assert(syscall(__NR_settimeofday, tv, tz) == -1); in main() 73 tz->tz_minuteswest, tz->tz_dsttime, sprintrc(-1)); in main() 77 assert(syscall(__NR_settimeofday, tv, tz) == -1); in main() 82 tz->tz_minuteswest, tz->tz_dsttime, sprintrc(-1)); in main()
|
/external/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 …]
|
/external/v8/src/ |
D | dateparser-inl.h | 21 TimeZoneComposer tz; in Parse() local 74 DateToken next_unhandled_token = ParseES5DateTime(&scanner, &day, &time, &tz); in Parse() 103 } else if (tz.IsExpecting(n)) { in Parse() 104 tz.SetAbsoluteMinute(n); in Parse() 129 tz.Set(value); in Parse() 137 } else if (token.IsAsciiSign() && (tz.IsUTC() || !time.IsEmpty())) { in Parse() 140 tz.SetSign(token.ascii_sign()); in Parse() 152 tz.SetAbsoluteHour(n); in Parse() 154 tz.SetAbsoluteMinute(kNone); in Parse() 157 tz.SetAbsoluteHour(n); in Parse() [all …]
|
/external/lmfit/demo/ |
D | surface1.c | 23 double f( double tx, double tz, const double *p ) in f() argument 25 return p[0] + p[1]*tx + p[2]*tz; in f() 30 double *tx, *tz; member 32 double (*f)( double tx, double tz, const double *p ); 45 fvec[i] = D->y[i] - D->f( D->tx[i], D->tz[i], par ); in evaluate_surface() 57 double tz[4] = { -1, 1, -1, 1 }; in main() local 60 data_struct data = { tx, tz, y, f }; in main() 86 ff = f(tx[i], tz[i], par); in main() 88 i, tx[i], tz[i], y[i], ff, y[i] - ff ); in main()
|
/external/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 …]
|
/external/icu/icu4c/source/test/intltest/ |
D | tztest.cpp | 240 TimeZoneTest::findTransition(const TimeZone& tz, in findTransition() argument 244 UBool startsInDST = tz.inDaylightTime(min, ec); in findTransition() 246 if (tz.inDaylightTime(max, ec) == startsInDST) { in findTransition() 247 …logln("Error: " + tz.getID(id) + ".inDaylightTime(" + dateToString(min) + ") = " + (startsInDST?"T… in findTransition() 254 if (tz.inDaylightTime(mid, ec) == startsInDST) { in findTransition() 263 logln(tz.getID(id) + " Before: " + min/1000 + " = " + in findTransition() 264 dateToString(min,s,tz)); in findTransition() 265 logln(tz.getID(id) + " After: " + max/1000 + " = " + in findTransition() 266 dateToString(max,s,tz)); in findTransition() 270 TimeZoneTest::testUsingBinarySearch(const TimeZone& tz, in testUsingBinarySearch() argument [all …]
|
D | tzbdtest.cpp | 118 …findDaylightBoundaryUsingTimeZone(UDate d, UBool startsInDST, UDate expectedBoundary, TimeZone* tz) in findDaylightBoundaryUsingTimeZone() argument 124 if (tz->inDaylightTime(d, status) != startsInDST) { in findDaylightBoundaryUsingTimeZone() 125 …dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(d) + ") != " + (startsInDS… in findDaylightBoundaryUsingTimeZone() 129 if (tz->inDaylightTime(max, status) == startsInDST) { in findDaylightBoundaryUsingTimeZone() 130 …dataerrln("FAIL: " + tz->getID(str) + " inDaylightTime(" + dateToString(max) + ") != " + (startsIn… in findDaylightBoundaryUsingTimeZone() 136 UBool isIn = tz->inDaylightTime(mid, status); in findDaylightBoundaryUsingTimeZone() 145 logln(tz->getID(str) + " Before: " + showDate(min)); in findDaylightBoundaryUsingTimeZone() 146 logln(tz->getID(str) + " After: " + showDate(max)); in findDaylightBoundaryUsingTimeZone() 339 TimeZone *tz; in TestBoundaries() local 340 TimeZone::setDefault(*(tz = TimeZone::createTimeZone("PST"))); in TestBoundaries() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
D | TimeZoneTest.java | 472 TimeZone tz = TimeZone.getTimeZone(timezones[i]); in TestDisplayName2() local 473 String displayName0 = tz.getDisplayName(locale); in TestDisplayName2() 475 dt.setTimeZone(tz); in TestDisplayName2() 477 logln(locale.getDisplayName() + ", " + tz.getID() + ": " + displayName0); in TestDisplayName2() 483 if (tz.inDaylightTime(now)) { in TestDisplayName2() 485 displayName0 = tz.getDisplayName(true, TimeZone.LONG_GENERIC, locale); in TestDisplayName2() 488 errln(locale.getDisplayName() + ", " + tz.getID() + in TestDisplayName2() 637 void _testUsingBinarySearch(SimpleTimeZone tz, long min, long max, long expectedBoundary) in _testUsingBinarySearch() argument 640 boolean startsInDST = tz.inDaylightTime(new Date(min)); in _testUsingBinarySearch() 642 if (tz.inDaylightTime(new Date(max)) == startsInDST) { in _testUsingBinarySearch() [all …]
|
D | TimeZoneBoundaryTest.java | 145 long expectedBoundary, TimeZone tz) in findDaylightBoundaryUsingTimeZone() argument 155 if (tz.inDaylightTime(d) != startsInDST) in findDaylightBoundaryUsingTimeZone() 157 errln("FAIL: " + tz.getID() + " inDaylightTime(" + in findDaylightBoundaryUsingTimeZone() 162 if (tz.inDaylightTime(new Date(max)) == startsInDST) in findDaylightBoundaryUsingTimeZone() 164 errln("FAIL: " + tz.getID() + " inDaylightTime(" + in findDaylightBoundaryUsingTimeZone() 172 boolean isIn = tz.inDaylightTime(new Date(mid)); in findDaylightBoundaryUsingTimeZone() 183 logln(tz.getID() + " Before: " + showDate(min, tz)); in findDaylightBoundaryUsingTimeZone() 184 logln(tz.getID() + " After: " + showDate(max, tz)); in findDaylightBoundaryUsingTimeZone() 189 fmt.setTimeZone(tz); in findDaylightBoundaryUsingTimeZone() 651 void _testUsingBinarySearch(SimpleTimeZone tz, Date d, long expectedBoundary) in _testUsingBinarySearch() argument [all …]
|
D | TimeZoneRegressionTest.java | 108 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4084933() local 110 long offset1 = tz.getOffset(1, in Test4084933() 112 long offset2 = tz.getOffset(1, in Test4084933() 115 long offset3 = tz.getOffset(1, in Test4084933() 117 long offset4 = tz.getOffset(1, in Test4084933() 125 long offset5 = tz.getOffset(1, in Test4084933() 127 long offset6 = tz.getOffset(1, in Test4084933() 130 long offset7 = tz.getOffset(1, in Test4084933() 132 long offset8 = tz.getOffset(1, in Test4084933() 314 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4126678() local [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
D | TimeZoneTest.java | 475 TimeZone tz = TimeZone.getTimeZone(timezones[i]); in TestDisplayName2() local 476 String displayName0 = tz.getDisplayName(locale); in TestDisplayName2() 478 dt.setTimeZone(tz); in TestDisplayName2() 480 logln(locale.getDisplayName() + ", " + tz.getID() + ": " + displayName0); in TestDisplayName2() 486 if (tz.inDaylightTime(now)) { in TestDisplayName2() 488 displayName0 = tz.getDisplayName(true, TimeZone.LONG_GENERIC, locale); in TestDisplayName2() 491 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 …]
|
D | TimeZoneBoundaryTest.java | 148 long expectedBoundary, TimeZone tz) in findDaylightBoundaryUsingTimeZone() argument 158 if (tz.inDaylightTime(d) != startsInDST) in findDaylightBoundaryUsingTimeZone() 160 errln("FAIL: " + tz.getID() + " inDaylightTime(" + in findDaylightBoundaryUsingTimeZone() 165 if (tz.inDaylightTime(new Date(max)) == startsInDST) in findDaylightBoundaryUsingTimeZone() 167 errln("FAIL: " + tz.getID() + " inDaylightTime(" + in findDaylightBoundaryUsingTimeZone() 175 boolean isIn = tz.inDaylightTime(new Date(mid)); in findDaylightBoundaryUsingTimeZone() 186 logln(tz.getID() + " Before: " + showDate(min, tz)); in findDaylightBoundaryUsingTimeZone() 187 logln(tz.getID() + " After: " + showDate(max, tz)); in findDaylightBoundaryUsingTimeZone() 192 fmt.setTimeZone(tz); in findDaylightBoundaryUsingTimeZone() 654 void _testUsingBinarySearch(SimpleTimeZone tz, Date d, long expectedBoundary) in _testUsingBinarySearch() argument [all …]
|
D | TimeZoneRegressionTest.java | 111 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4084933() local 113 long offset1 = tz.getOffset(1, in Test4084933() 115 long offset2 = tz.getOffset(1, in Test4084933() 118 long offset3 = tz.getOffset(1, in Test4084933() 120 long offset4 = tz.getOffset(1, in Test4084933() 128 long offset5 = tz.getOffset(1, in Test4084933() 130 long offset6 = tz.getOffset(1, in Test4084933() 133 long offset7 = tz.getOffset(1, in Test4084933() 135 long offset8 = tz.getOffset(1, in Test4084933() 317 TimeZone tz = TimeZone.getTimeZone("PST"); in Test4126678() local [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | DangiCalendar.java | 75 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/android_icu4j/src/main/java/android/icu/util/ |
D | DangiCalendar.java | 77 RuleBasedTimeZone tz = new RuleBasedTimeZone("KOREA_ZONE", initialTimeZone); 78 tz.addTransitionRule(rule1897); 79 tz.addTransitionRule(rule1898to1911); 80 tz.addTransitionRule(ruleFrom1912); 81 tz.freeze(); in tz.freeze() 82 KOREA_ZONE = tz;
|
/external/python/dateutil/docs/ |
D | examples.rst | 879 .. doctest:: tz 882 >>> from dateutil.tz import * 892 .. doctest:: tz 907 .. doctest:: tz 915 .. doctest:: tz 923 .. doctest:: tz 932 .. doctest:: tz 940 .. doctest:: tz 957 .. doctest:: tz 977 .. doctest:: tz [all …]
|
/external/python/pyasn1/pyasn1/type/ |
D | useful.py | 77 text, plusminus, tz = string.partition(text, '+') 79 text, plusminus, tz = string.partition(text, '-') 81 if self._shortTZ and len(tz) == 2: 82 tz += '00' 84 if len(tz) != 4: 85 raise error.PyAsn1Error('malformed time zone offset %s' % tz) 88 minutes = int(tz[:2]) * 60 + int(tz[2:])
|
/external/mesa3d/src/mesa/math/ |
D | m_norm_tmp.h | 61 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/icu4c/source/samples/date/ |
D | date.c | 51 static void date(UDate when, const UChar *tz, UDateFormatStyle style, const char *format, const cha… 52 …onst char *locale, UDateFormatStyle style, const char *parse, const UChar *tz, UErrorCode *status); 73 const UChar *tz = 0; in main() local 97 tz = GMT_ID; in main() 172 when = getWhen(millis, seconds, format, locale, style, parse, tz, &status); in main() 178 date(when, tz, style, format, locale, &status); in main() 253 const UChar *tz, in date() argument 276 fmt = udat_open(style, style, locale, tz, -1,NULL,0, status); in date() 305 … UDateFormatStyle style, const char *parse, const UChar *tz, UErrorCode *status) { in getWhen() argument 331 fmt = udat_open(style, style, locale, tz, -1,NULL,0, status); in getWhen()
|