Home
last modified time | relevance | path

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

12345

/external/qemu/android/utils/
Dtimezone.c44 check_timezone_is_zoneinfo(const char* tz) in check_timezone_is_zoneinfo() argument
48 if (tz == NULL) in check_timezone_is_zoneinfo()
52 slash1 = strchr( tz, '/' ); in check_timezone_is_zoneinfo()
88 const char* tz = get_zoneinfo_timezone(); in bufprint_zoneinfo_timezone() local
90 if (tz == NULL || !check_timezone_is_zoneinfo(tz)) in bufprint_zoneinfo_timezone()
93 return bufprint(p, end, "%s", tz); in bufprint_zoneinfo_timezone()
109 const char* tz = getenv("TZ"); in get_zoneinfo_timezone() local
113 if (tz == NULL) { in get_zoneinfo_timezone()
128 tz = buff + sizeof(ZONEINFO_DIR)-1; in get_zoneinfo_timezone()
129 if ( !check_timezone_is_zoneinfo(tz) ) { in get_zoneinfo_timezone()
[all …]
/external/v8/src/
Ddateparser-inl.h40 TimeZoneComposer tz; in Parse() local
58 } else if (tz.IsExpecting(n)) { in Parse()
59 tz.SetAbsoluteMinute(n); in Parse()
81 tz.Set(KeywordTable::GetValue(index)); in Parse()
86 } else if (in.IsAsciiSign() && (tz.IsUTC() || !time.IsEmpty())) { in Parse()
88 tz.SetSign(in.GetAsciiSignValue()); in Parse()
92 tz.SetAbsoluteHour(n); in Parse()
93 tz.SetAbsoluteMinute(kNone); in Parse()
95 tz.SetAbsoluteHour(n / 100); in Parse()
96 tz.SetAbsoluteMinute(n % 100); in Parse()
[all …]
/external/chromium/third_party/icu/source/test/intltest/
Dtztest.cpp221 TimeZoneTest::findTransition(const TimeZone& tz, in findTransition() argument
225 UBool startsInDST = tz.inDaylightTime(min, ec); in findTransition()
227 if (tz.inDaylightTime(max, ec) == startsInDST) { in findTransition()
228 …logln("Error: " + tz.getID(id) + ".inDaylightTime(" + dateToString(min) + ") = " + (startsInDST?"T… in findTransition()
235 if (tz.inDaylightTime(mid, ec) == startsInDST) { in findTransition()
244 logln(tz.getID(id) + " Before: " + min/1000 + " = " + in findTransition()
245 dateToString(min,s,tz)); in findTransition()
246 logln(tz.getID(id) + " After: " + max/1000 + " = " + in findTransition()
247 dateToString(max,s,tz)); in findTransition()
251 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()
335 TimeZone *tz; in TestBoundaries() local
336 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 …]
Dtzfmttst.cpp127 TimeZone *tz = TimeZone::createTimeZone(*tzid); in TestTimeZoneRoundTrip() local
133 sdf->setTimeZone(*tz); in TestTimeZoneRoundTrip()
159 tz->getOffset(DATES[datidx], false, inRaw, inDst, status); in TestTimeZoneRoundTrip()
182 …if (!((BasicTimeZone*)&outtz)->hasEquivalentTransitions((BasicTimeZone&)*tz, low, high, TRUE, stat… in TestTimeZoneRoundTrip()
232 delete tz; in TestTimeZoneRoundTrip()
363 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); in TestTimeRoundTrip() local
364 sdf->setTimeZone(*tz); in TestTimeRoundTrip()
436 tztAvail = tz->getNextTransition(t, FALSE, tzt); in TestTimeRoundTrip()
449 delete tz; in TestTimeRoundTrip()
Dtzrulets.cpp606 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); in TestOlsonTransition() local
610 verifyTransitions(*tz, lo, hi); in TestOlsonTransition()
612 delete tz; in TestOlsonTransition()
641 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); in TestRBTZTransition() local
642 int32_t ruleCount = tz->countTransitionRules(status); in TestRBTZTransition()
646 tz->getTimeZoneRules(initial, trsrules, ruleCount, status); in TestRBTZTransition()
671 compareTransitionsAscending(*tz, *rbtz, start, until, FALSE); in TestRBTZTransition()
673 compareTransitionsAscending(*tz, *rbtz, start + 1, until, TRUE); in TestRBTZTransition()
675 compareTransitionsDescending(*tz, *rbtz, start, until, FALSE); in TestRBTZTransition()
677 compareTransitionsDescending(*tz, *rbtz, start + 1, until, TRUE); in TestRBTZTransition()
[all …]
Ditformat.cpp74 TimeZone *tz = TimeZone::createTimeZone("PST"); in runIndexedTest() local
75 TimeZone::setDefault(*tz); in runIndexedTest()
76 delete tz; in runIndexedTest()
/external/icu4c/test/intltest/
Dtztest.cpp230 TimeZoneTest::findTransition(const TimeZone& tz, in findTransition() argument
234 UBool startsInDST = tz.inDaylightTime(min, ec); in findTransition()
236 if (tz.inDaylightTime(max, ec) == startsInDST) { in findTransition()
237 …logln("Error: " + tz.getID(id) + ".inDaylightTime(" + dateToString(min) + ") = " + (startsInDST?"T… in findTransition()
244 if (tz.inDaylightTime(mid, ec) == startsInDST) { in findTransition()
253 logln(tz.getID(id) + " Before: " + min/1000 + " = " + in findTransition()
254 dateToString(min,s,tz)); in findTransition()
255 logln(tz.getID(id) + " After: " + max/1000 + " = " + in findTransition()
256 dateToString(max,s,tz)); in findTransition()
260 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 …]
Dtzfmttst.cpp128 TimeZone *tz = TimeZone::createTimeZone(*tzid); in TestTimeZoneRoundTrip() local
134 sdf->setTimeZone(*tz); in TestTimeZoneRoundTrip()
160 tz->getOffset(DATES[datidx], false, inRaw, inDst, status); in TestTimeZoneRoundTrip()
183 …if (!((BasicTimeZone*)&outtz)->hasEquivalentTransitions((BasicTimeZone&)*tz, low, high, TRUE, stat… in TestTimeZoneRoundTrip()
233 delete tz; in TestTimeZoneRoundTrip()
345 BasicTimeZone *tz = (BasicTimeZone*) TimeZone::createTimeZone(*tzid); in run() local
346 sdf->setTimeZone(*tz); in run()
412 tztAvail = tz->getNextTransition(t, FALSE, tzt); in run()
425 delete tz; in run()
Ditformat.cpp77 TimeZone *tz = TimeZone::createTimeZone("PST"); in runIndexedTest() local
78 TimeZone::setDefault(*tz); in runIndexedTest()
79 delete tz; in runIndexedTest()
Dtzrulets.cpp617 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); in TestOlsonTransition() local
621 verifyTransitions(*tz, lo, hi); in TestOlsonTransition()
623 delete tz; in TestOlsonTransition()
652 BasicTimeZone *tz = (BasicTimeZone*)TimeZone::createTimeZone(*tzid); in TestRBTZTransition() local
653 int32_t ruleCount = tz->countTransitionRules(status); in TestRBTZTransition()
657 tz->getTimeZoneRules(initial, trsrules, ruleCount, status); in TestRBTZTransition()
682 compareTransitionsAscending(*tz, *rbtz, start, until, FALSE); in TestRBTZTransition()
684 compareTransitionsAscending(*tz, *rbtz, start + 1, until, TRUE); in TestRBTZTransition()
686 compareTransitionsDescending(*tz, *rbtz, start, until, FALSE); in TestRBTZTransition()
688 compareTransitionsDescending(*tz, *rbtz, start + 1, until, TRUE); in TestRBTZTransition()
[all …]
/external/chromium/third_party/icu/source/tools/tzcode/
Dicuzdump.cpp115 void setTimeZone(TimeZone* tz) { in setTimeZone() argument
116 timezone = tz; in setTimeZone()
239 TimeZone* tz = NULL; in next() local
244 tz = TimeZone::createTimeZone(*zid); in next()
250 tz = TimeZone::createTimeZone((const UnicodeString&)zids[idx]); in next()
253 tz = TimeZone::createDefault(); in next()
258 return tz; in next()
375 TimeZone* tz = zit->next(); in main() local
376 if (tz == NULL) { in main()
379 dumper.setTimeZone(tz); in main()
[all …]
/external/icu4c/tools/tzcode/
Dicuzdump.cpp115 void setTimeZone(TimeZone* tz) { in setTimeZone() argument
116 timezone = tz; in setTimeZone()
239 TimeZone* tz = NULL; in next() local
244 tz = TimeZone::createTimeZone(*zid); in next()
250 tz = TimeZone::createTimeZone((const UnicodeString&)zids[idx]); in next()
253 tz = TimeZone::createDefault(); in next()
258 return tz; in next()
375 TimeZone* tz = zit->next(); in main() local
376 if (tz == NULL) { in main()
379 dumper.setTimeZone(tz); in main()
[all …]
/external/clearsilver/util/
Dneo_date.c85 long tz; in neo_tz_offset()
87 tz = - timezone; in neo_tz_offset()
89 tz = - _timezone; in neo_tz_offset()
92 tz += 3600; in neo_tz_offset()
93 return tz; in neo_tz_offset()
95 long tz; in neo_tz_offset()
105 tz = mktime(&loc_tm) - mktime(&gmt_tm); in neo_tz_offset()
106 return tz; in neo_tz_offset()
/external/icu4c/samples/date/
Ddate.c46 static void date(const UChar *tz, UDateFormatStyle style, char *format, UErrorCode *status);
64 const UChar *tz = 0; in main() local
84 tz = GMT_ID; in main()
138 date(tz, style, format, &status); in main()
192 date(const UChar *tz, in date() argument
202 fmt = udat_open(style, style, 0, tz, -1,NULL,0, status); in date()
/external/webkit/WebCore/platform/graphics/transforms/
DTranslateTransformOperation.h40 …ransformOperation> create(const Length& tx, const Length& ty, const Length& tz, OperationType type) in create() argument
42 return adoptRef(new TranslateTransformOperation(tx, ty, tz, type)); in create()
71 …TranslateTransformOperation(const Length& tx, const Length& ty, const Length& tz, OperationType ty… in TranslateTransformOperation() argument
74 , m_z(tz) in TranslateTransformOperation()
/external/chromium/third_party/icu/source/i18n/
Dwintzimpl.cpp35 static UBool getSystemTimeInformation(TimeZone *tz, SYSTEMTIME &daylightDate, SYSTEMTIME &standardD… in getSystemTimeInformation() argument
38 BasicTimeZone *btz = (BasicTimeZone*)tz; // we should check type in getSystemTimeInformation()
116 TimeZone *tz = TimeZone::createTimeZone(id); in getWindowsTimeZoneInfo() local
118 if (tz != NULL) { in getWindowsTimeZoneInfo()
124 … if (getSystemTimeInformation(tz, daylightDate, standardDate, bias, daylightBias, standardBias)) { in getWindowsTimeZoneInfo()
Dvtzone.cpp949 : BasicTimeZone(), tz(NULL), vtzlines(NULL), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
954 : BasicTimeZone(source), tz(NULL), vtzlines(NULL), in VTimeZone()
957 if (source.tz != NULL) { in VTimeZone()
958 tz = (BasicTimeZone*)source.tz->clone(); in VTimeZone()
980 if (tz != NULL) { in ~VTimeZone()
981 delete tz; in ~VTimeZone()
995 if (tz != NULL) { in operator =()
996 delete tz; in operator =()
997 tz = NULL; in operator =()
999 if (right.tz != NULL) { in operator =()
[all …]
/external/icu4c/i18n/
Dwintzimpl.cpp36 static UBool getSystemTimeInformation(TimeZone *tz, SYSTEMTIME &daylightDate, SYSTEMTIME &standardD… in getSystemTimeInformation() argument
39 BasicTimeZone *btz = (BasicTimeZone*)tz; // we should check type in getSystemTimeInformation()
119 TimeZone *tz = TimeZone::createTimeZone(id); in getWindowsTimeZoneInfo() local
121 if (tz != NULL) { in getWindowsTimeZoneInfo()
128 … if (getSystemTimeInformation(tz, daylightDate, standardDate, bias, daylightBias, standardBias)) { in getWindowsTimeZoneInfo()
Dvtzone.cpp949 : BasicTimeZone(), tz(NULL), vtzlines(NULL), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
954 : BasicTimeZone(source), tz(NULL), vtzlines(NULL), in VTimeZone()
957 if (source.tz != NULL) { in VTimeZone()
958 tz = (BasicTimeZone*)source.tz->clone(); in VTimeZone()
980 if (tz != NULL) { in ~VTimeZone()
981 delete tz; in ~VTimeZone()
995 if (tz != NULL) { in operator =()
996 delete tz; in operator =()
997 tz = NULL; in operator =()
999 if (right.tz != NULL) { in operator =()
[all …]
/external/e2fsprogs/debugfs/
Dutil.c193 char * tz; in time_to_string() local
197 tz = getenv("TZ"); in time_to_string()
198 if (!tz) in time_to_string()
199 tz = ""; in time_to_string()
200 do_gmt = !strcmp(tz, "GMT"); in time_to_string()
/external/tremolo/Tremolo/
Dmisc.c92 static struct timezone tz; in _insert() local
95 gettimeofday(&tv,&tz); in _insert()
149 static struct timezone tz; in _ripremove() local
155 gettimeofday(&tv,&tz); in _ripremove()

12345