Home
last modified time | relevance | path

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

/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_data.h175 uint32_t leapMonth = LUNAR_INFO[lunarYear - YEAR_START] & 0xf; // use 0xf to get leap month info in GetLunarLeapMonth()
255 bool leap = false; member in OHOS::Ace::PickerDateF
267 static PickerDateF CreateMonth(uint32_t month, bool lunar = false, bool leap = false) in CreateMonth()
272 date.leap = leap; in CreateMonth()
284 static PickerDateF CreateMonthDay(uint32_t month, uint32_t day, bool lunar = false, bool leap = false) in CreateMonthDay()
290 date.leap = leap; in CreateMonthDay()
/foundation/arkui/ace_engine/frameworks/base/i18n/
H A Dlocalization.cpp649 std::string leap; in GetLunarMonth() local
651 leap += std::string(CHINESE_LEAP); in GetLunarMonth()
653 return leap + months[month - 1]; in GetLunarMonth()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Ddatepicker_pattern.cpp945 if (LunarCalculator::GetLunarLeapMonth(lunarDate.year) == 12) { // leap 12th month in HandleReduceLunarDayChange()
954 } else if (lunarLeapMonth == lunarDate.month - 1) { // leap month is previous month in HandleReduceLunarDayChange()
1162 if (LunarCalculator::GetLunarLeapMonth(lunarDate.year) == 12) { // leap 12th month in HandleReduceLunarMonthDaysChange()
1390 date.SetDay(28); // the max day of the 2th month of none leap year is 28 in HandleSolarYearChange()
1612 static const double addingValue = 0.5; // adding value for leap month. in LunarDateCompare()
2213 uint32_t index = (isLeap ? month + 12 : month); // leap month is behind 12 index in GetLunarMonth()
2250 monthStr = date.lunar ? GetLunarMonth(date.month.value(), date.leap) : GetSolarMonth(date.month.value()); in GetFormatString()

Completed in 7 milliseconds