Home
last modified time | relevance | path

Searched refs:timeZone (Results 1 - 7 of 7) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
H A Ddate_parse.cpp29 TimeZone timeZone; in ParseDateString() local
33 result = ParseIsoDateTime(&proxy, &dayValue, &timeValue, &timeZone); in ParseDateString()
35 result = ParseLegacyDates(&proxy, &dayValue, &timeValue, &timeZone); in ParseDateString()
38 bool success = timeZone.SetTimeZone(time) && timeValue.SetTimeValue(time) && dayValue.SetDayValue(time); in ParseDateString()
92 bool DateParse::ParseIsoDateTime(DateProxy *proxy, DayValue *dayValue, TimeValue *timeValue, TimeZone *timeZone) in ParseIsoDateTime() argument
136 timeZone->SetUTC(); in ParseIsoDateTime()
140 timeZone->SetSign(-1); in ParseIsoDateTime()
142 timeZone->SetSign(1); in ParseIsoDateTime()
148 timeZone->SetHour(hourZone.GetValue()); in ParseIsoDateTime()
158 timeZone in ParseIsoDateTime()
180 ParseLegacyDates(DateProxy *proxy, DayValue *dayValue, TimeValue *timeValue, TimeZone *timeZone) ParseLegacyDates() argument
[all...]
H A Ddate_parse.h533 TimeZone *timeZone);
535 TimeZone *timeZone);
H A Djs_date_time_format.cpp445 // 24. Let timeZone be ? Get(options, "timeZone"). in InitializeDateTimeFormat()
451 // 25. If timeZone is not undefined, then in InitializeDateTimeFormat()
452 // a. Let timeZone be ? ToString(timeZone). in InitializeDateTimeFormat()
453 // b. If the result of IsValidTimeZoneName(timeZone) is false, then in InitializeDateTimeFormat()
461 THROW_RANGE_ERROR_AND_RETURN(thread, "invalid timeZone", dateTimeFormat); in InitializeDateTimeFormat()
465 // a. Let timeZone be DefaultTimeZone(). in InitializeDateTimeFormat()
1099 // [[TimeZone]] "timeZone" in ResolvedOptions()
1533 std::unique_ptr<icu::Calendar> JSDateTimeFormat::BuildCalendar(const icu::Locale &locale, const icu::TimeZone &timeZone) in BuildCalendar() argument
[all...]
H A Djs_date_time_format.h197 static std::unique_ptr<icu::Calendar> BuildCalendar(const icu::Locale &locale, const icu::TimeZone &timeZone);
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_date_time_format_second_test.cpp58 JSHandle<JSTaggedValue> timeZone = globalConst->GetHandledTimeZoneString(); in HWTEST_F_L0() local
61 JSObject::GetProperty(thread, resultObj, timeZone).GetValue(), timeZoneValue), true); in HWTEST_F_L0()
266 JSHandle<JSTaggedValue> timeZone = globalConst->GetHandledTimeZoneString(); in JSDateTimeFormatForObj_002() local
296 JSObject::SetProperty(thread, optionsObj, timeZone, timeZoneValue); in JSDateTimeFormatForObj_002()
350 JSHandle<JSTaggedValue> timeZone(factory->NewFromASCII("timeZone")); in HWTEST_F_L0()
355 JSObject::SetProperty(thread, optionsObj, timeZone, timeZoneValue); in HWTEST_F_L0()
H A Dbuiltin_test_util.h164 JSHandle<JSTaggedValue> timeZone = globalConst->GetHandledTimeZoneString(); in BuiltinsDateTimeOptionsSet() local
182 JSObject::SetProperty(thread, optionsObj, timeZone, timeZoneValue); in BuiltinsDateTimeOptionsSet()
/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_locale_test.cpp121 icu::TimeZone *timeZone = icu::TimeZone::createTimeZone(stringID1); in HWTEST_F_L0() local
122 EXPECT_TRUE(JSLocale::IsValidTimeZoneName(*timeZone)); in HWTEST_F_L0()
123 delete timeZone; in HWTEST_F_L0()
126 timeZone = icu::TimeZone::createTimeZone(stringID2); in HWTEST_F_L0()
127 EXPECT_FALSE(JSLocale::IsValidTimeZoneName(*timeZone)); in HWTEST_F_L0()
128 delete timeZone; in HWTEST_F_L0()

Completed in 8 milliseconds