Home
last modified time | relevance | path

Searched refs:months (Results 1 - 3 of 3) sorted by relevance

/arkcompiler/ets_runtime/test/moduletest/arraysortcase/
H A Darraysortcase.js16 const months = ['March', 'Jan', 'Feb', 'Dec'];
17 months.sort();
18 print(months);
/arkcompiler/ets_runtime/ecmascript/
H A Djs_relative_time_format.cpp182 // 7. If unit is "months" or "month", return "month". in SingularUnitToIcuUnit()
200 JSHandle<EcmaString> months = JSHandle<EcmaString>::Cast(globalConst->GetHandledMonthsString()); in SingularUnitToIcuUnit() local
220 EcmaStringAccessor::StringsAreEqual(*months, *unit)) { in SingularUnitToIcuUnit()
314 JSHandle<EcmaString> months = JSHandle<EcmaString>::Cast(globalConst->GetHandledMonthsString()); in SingularUnitString() local
338 // 7. If unit is "months" or "month", return "month". in SingularUnitString()
339 if (EcmaStringAccessor::StringsAreEqual(*month, *unit) || EcmaStringAccessor::StringsAreEqual(*months, *unit)) { in SingularUnitString()
/arkcompiler/ets_runtime/test/moduletest/array/
H A Darray.js153 const months = ["Mar", "Jan", "Feb", "Dec"];
154 const sortedMonths = months.toSorted();
156 print(months); // ['Mar', 'Jan', 'Feb', 'Dec']

Completed in 5 milliseconds