Home
last modified time | relevance | path

Searched refs:month (Results 1 – 25 of 241) sorted by relevance

12345678910

/ohos5.0/drivers/hdf_core/framework/support/platform/src/rtc/
H A Drtc_base.c24 if (month == RTC_FEBRUARY) { in RtcGetMonthDays()
27 oddMonth = (month >= RTC_AUGUST) ? (month - RTC_UNIT_DIFF) : month; in RtcGetMonthDays()
36 maxDay = RtcGetMonthDays(IS_LEAP_YEAR(year), month); in RtcIsInvalidDay()
57 int8_t month; in RtcGetWeekDay() local
67 month = time->month; in RtcGetWeekDay()
68 while (--month >= RTC_JANUARY) { in RtcGetWeekDay()
90 int8_t month; in RtcTimeToTimestamp() local
105 month = time->month; in RtcTimeToTimestamp()
108 for (month--; month >= RTC_JANUARY; month--) { in RtcTimeToTimestamp()
136 time->month = RTC_JANUARY; in TimestampToRtcTime()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/calendar/
H A Dcalendar_data_adapter.cpp59 today_.month.month = static_cast<int32_t>(currentDate.month) - 1; in CalendarDataAdapter()
106 if (dayInfo.month == result.month) { in ParseData()
141 json->Put("month", request.month.month); in RequestData()
198 .append(std::to_string(request.month.month)) in GetCacheData()
207 daysOfMonth.month = request.month; in GetCacheData()
324 dayInfo.month.month = child->GetInt("month"); in ParseMonthData()
344 auto weekday = Date::CalculateWeekDay(dayInfo.month.year, dayInfo.month.month + 1, dayInfo.day); in SetOffDays()
433 dayInfo.month.month = lastMonth.month; in FillPreMonthData()
451 dayInfo.month.month = currentMonth.month; in FillCurrentMonthData()
476 dayInfo.month.month = nextMonth.month; in FillNextMonthData()
[all …]
H A Dcalendar_data_adapter.h50 return calendarMonth.month == month && calendarMonth.year == year;
54 return calendarMonth.month != month || calendarMonth.year != year;
132 CalendarMonth month; member
148 json->Put(MONTH, month.month); in ToString()
157 CalendarMonth month; member
166 : month(month), indexOfContainer(indexOfContainer) in CalendarDataRequest()
196 int32_t month = 0; member
297 today_.month.month = today.month.month; in SetToday()
298 today_.month.year = today.month.year; in SetToday()
443 daysOfMonth.month = request.month; in HandleDataRequestResult()
[all …]
H A Dcalendar_controller_v2.h41 controller_->GoTo(today.month.year, today.month.month, today.day); in BackToToday()
45 void GoTo(int32_t year, int32_t month, int32_t day) in GoTo() argument
49 calendarDay.month.month = month; in GoTo()
50 calendarDay.month.year = year; in GoTo()
54 controller_->GoTo(year, month, day); in GoTo()
H A Drosen_render_calendar.cpp476 day.month.month != currentMonth_.month) { in PaintDay()
496 if (day.month.month == currentMonth_.month) { in PaintDay()
602 if (day.month.month != currentMonth_.month) {
609 if (day.month.month != currentMonth_.month) {
700 if (IsToday(day) && (day.month.month == currentMonth_.month)) {
758 day.month.month != currentMonth_.month) {
845 if (day.month.month != currentMonth_.month) {
869 if (day.month.month != currentMonth_.month) {
903 if (day.month.month != currentMonth_.month) {
921 if (day.month.month != currentMonth_.month) {
[all …]
H A Drender_calendar.cpp92 dateTime.year = static_cast<uint32_t>(today.month.year); in UpdateAccessibility()
93 dateTime.month = static_cast<uint32_t>(today.month.month); in UpdateAccessibility()
135 if (currentMonth_ == daysOfMonth.month) { in OnDataChanged()
154 currentMonth_ = daysOfMonth.month; in OnDataChanged()
178 calendarController_->GetCrossMonthDay().month == currentMonth_ && IsValid(touchIndex_)) { in OnSelectedDay()
252 calendarDays_[date.index].month != calendarController_->GetCurrentMonth()) { in OnDateSelected()
291 if (onFocusDay.month < currentMonth_) { in FocusChanged()
294 } else if (calendarDays_[newIndex].month > currentMonth_) { in FocusChanged()
341 if (calendarDays_[index].month > calendarController_->GetCurrentMonth()) { in HandleClick()
345 } else if (calendarDays_[index].month < calendarController_->GetCurrentMonth()) { in HandleClick()
[all …]
H A Dcalendar_element.cpp123 dateTime.month = currentDate.month < 0 ? 0 : static_cast<uint32_t>(currentDate.month); in RegisterChangeEndListener()
207 today.month == currentDate ? json->Put("day", today.day) : json->Put("day", 1); in BuildCardCalendar()
208 json->Put("month", currentDate.month); in BuildCardCalendar()
223 if (today.day != date.day || today.month != date.month) { in UpdateAttr()
225 calendarController_->GoTo(date.month.year, date.month.month, date.day); in UpdateAttr()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_data.cpp38 uint32_t PickerDate::GetMaxDay(uint32_t year, uint32_t month) in GetMaxDay() argument
45 switch (month) { in GetMaxDay()
87 for (uint32_t month = 1; month < month_; ++month) { in ToDays() local
88 days += PickerDate::GetMaxDay(year_, month); in ToDays()
250 for (uint32_t month = 1; month <= 12; ++month) { in Init() local
251 if (month - 1 < months.size()) { in Init()
252 solarMonths_[month - 1] = months[month - 1]; in Init()
256 date.month = month - 1; // W3C's month start from 0 to 11 in Init()
291 if (!(1 <= month && month <= 12)) { // solar month in [1,12] in GetSolarMonth()
294 return solarMonths_[month - 1]; // index in [0,11] in GetSolarMonth()
[all …]
H A Dpicker_date_component.cpp407 lunarDate.month = lunarDate.month + 1; // add to next month in HandleAddLunarDayChange()
410 lunarDate.month = lunarDate.month + 1; // add to next month in HandleAddLunarDayChange()
414 lunarDate.month = lunarDate.month + 1; // add to next month in HandleAddLunarDayChange()
454 lunarDate.month = lunarDate.month - 1; // reduce to previous month in HandleReduceLunarDayChange()
459 lunarDate.month = lunarDate.month - 1; // reduce to previous month in HandleReduceLunarDayChange()
512 result.month = date.GetMonth(); in SolarToLunar()
524 if (leapMonth < date.month) { in LunarToSolar()
528 for (uint32_t month = 1; month < date.month; ++month) { // month start from 1 in LunarToSolar() local
607 for (uint32_t month = startMonth; month <= endMonth; month++) { in SolarColumnsBuilding() local
766 double leftMonth = (left.isLeapMonth ? left.month + addingValue : left.month); in LunarDateCompare()
[all …]
H A Dpicker_data.h32 … PickerDate(uint32_t year, uint32_t month, uint32_t day) : year_(year), month_(month), day_(day) {} in PickerDate() argument
38 static uint32_t GetMaxDay(uint32_t year, uint32_t month);
206 uint32_t month = static_cast<uint32_t>(lunarMonth); in GetLunarMonthDays() local
208 … return ((LUNAR_INFO[lunarYear - YEAR_START] & (0x10000u >> (month % MAX_MONTH))) != 0) ? 30 : 29; in GetLunarMonthDays()
222 static const std::string& GetSolarMonth(uint32_t month);
226 static const std::string& GetLunarMonth(uint32_t month, bool isLeap);
252 std::optional<uint32_t> month; variable
267 static PickerDateF CreateMonth(uint32_t month, bool lunar = false, bool leap = false)
270 date.month = month;
284 …static PickerDateF CreateMonthDay(uint32_t month, uint32_t day, bool lunar = false, bool leap = fa…
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar_picker/
H A Dcalendar_dialog_pattern.cpp616 … return day.month.year == currentMonthData.year && day.month.month == currentMonthData.month; in HandleCalendarNodeKeyEvent()
628 … return day.month.year == currentMonthData.year && day.month.month == currentMonthData.month; in HandleCalendarNodeKeyEvent()
710 …if (currentMonthData.year == focusedDay_.month.year && currentMonthData.month == focusedDay_.month in FocusedLastFocusedDay()
715 GetCalendarMonthData(focusedDay_.month.year, focusedDay_.month.month, monthData); in FocusedLastFocusedDay()
717 …(currentMonthData.year == focusedDay_.month.year && currentMonthData.month > focusedDay_.month.mon… in FocusedLastFocusedDay()
768 …if (focusedDay.month.year != targetMonthData.year || focusedDay.month.month != targetMonthData.mon… in UpdateSwiperNodeFocusedDay()
814 currentMonthData.month == focusedDay_.month.month && in PaintCurrentMonthFocusState()
867 … if (focusedDay.month.year == preMonthData.year && focusedDay.month.month == preMonthData.month) { in UpdateNonCurrentMonthFocusedDay()
871 …if (focusedDay.month.year == nextMonthData.year && focusedDay.month.month == nextMonthData.month) { in UpdateNonCurrentMonthFocusedDay()
1043 calendarMonthData.month = month; in GetCalendarMonthData()
[all …]
/ohos5.0/base/global/i18n/frameworks/intl/src/
H A Dlunar_calendar.cpp99 ConvertDate(year, month, day); in SetGregorianDate()
101 isValidDate = VerifyDate(year, month, day); in SetGregorianDate()
106 solorMonth = month; in SetGregorianDate()
113 void LunarCalendar::ConvertDate(int32_t& year, int32_t& month, int32_t& day) in ConvertDate() argument
118 calendar_->set(year, month - 1, day); in ConvertDate()
136 month = tempMonth; in ConvertDate()
233 bool LunarCalendar::VerifyDate(int32_t year, int32_t month, int32_t day) in VerifyDate() argument
240 if ((month < VALID_START_MONTH) || (month > VALID_END_MONTH)) { in VerifyDate()
245 int32_t validEndDay = daysOfMonth[month]; in VerifyDate()
247 if (month == MONTH_FEB) { in VerifyDate()
[all …]
H A Dholiday_manager.cpp51 … struct tm tmObj = {.tm_mday = items[i].day, .tm_mon = items[i].month, .tm_year = items[i].year}; in HolidayManager()
60 items[i].month += MONTH_GREATER_ONE; in HolidayManager()
89 int32_t month = timObj->tm_mon + MONTH_GREATER_ONE; in IsHoliday() local
90 return IsHoliday(year, month, timObj->tm_mday); in IsHoliday()
93 bool HolidayManager::IsHoliday(int32_t year, int32_t month, int32_t day) in IsHoliday() argument
95 std::string startDate = Format(year, month, day); in IsHoliday()
103 std::string HolidayManager::Format(int32_t year, int32_t month, int32_t day) in Format() argument
108 formated += month < 10 ? ("0" + std::to_string(month)) : std::to_string(month); in Format()
207 holidayItem->month = timeObj.tm_mon; in ParseFileLine()
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/utils/
H A Ddate_util.cpp29 …date.month = static_cast<uint32_t>(local->tm_mon) + 1; // local month start from 0 to 11, need … in Current()
40 int32_t Date::DayOfMonth(int32_t year, int32_t month) in DayOfMonth() argument
43 switch (month) { in DayOfMonth()
68 int32_t Date::CalculateWeekDay(int32_t year, int32_t month, int32_t day) in CalculateWeekDay() argument
70 if (month == 1 || month == 2) { in CalculateWeekDay()
71 month += 12; in CalculateWeekDay()
76 return (day + 2 * month + 3 * (month + 1) / 5 + year + year / 4 - year / 100 + year / 400) % 7; in CalculateWeekDay()
H A Ddate_util.h26 Date(uint32_t year, uint32_t month, uint32_t day) : year(year), month(month), day(day) {} in Date()
30 static int32_t DayOfMonth(int32_t year, int32_t month);
32 static int32_t CalculateWeekDay(int32_t year, int32_t month, int32_t day);
36 uint32_t month = 0; member
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/
H A Dcalendar_pattern.cpp233 auto currentMonth = calendarDay_.month; in FireFirstRequestData()
237 json->Put("month", currentMonth.month); in FireFirstRequestData()
252 json->Put("month", preMonth_.month); in FireRequestData()
259 json->Put("currentMonth", calendarDay_.month.month); in FireRequestData()
270 auto currentMonth = calendarDay_.month; in FireGoToRequestData()
274 json->Put("month", month); in FireGoToRequestData()
277 goToCalendarMonth_ = month; in FireGoToRequestData()
285 if (day.month.year == goToCalendarYear_ && day.month.month == goToCalendarMonth_ && in JumpTo()
371 …day.focused = day.month.year == calendarDay_.month.year && day.month.month == calendarDay_.month.m… in FlushFocus()
396 day.month.month == static_cast<int32_t>(selectedDay_.GetMonth()) && in FlushDialogMonthData()
[all …]
H A Dcalendar_month_pattern.cpp163 obtainedMonth_.days[i].month.month == obtainedMonth_.month && in SetVirtualNodeUserSelected()
164 obtainedMonth_.days[i].month.year == obtainedMonth_.year) { in SetVirtualNodeUserSelected()
180 json->Put("month", obtainedMonth_.days[selectedIndex].month.month); in SetVirtualNodeUserSelected()
301 json->Put("month", obtainedMonth.days[index].month.month); in OnClick()
302 json->Put("year", obtainedMonth.days[index].month.year); in OnClick()
598 if (calendarDay.index != selectedIndex_ && calendarDay.month.month == obtainedMonth_.month) { in ChangeVirtualNodeState()
830 …if (calendarDay.month.year == calendarDay_.month.year && calendarDay.month.month == calendarDay_.m… in ChangeVirtualNodeContent()
834 message += std::to_string(calendarDay.month.year) + "/"; in ChangeVirtualNodeContent()
835 message += std::to_string(calendarDay.month.month) + "/"; in ChangeVirtualNodeContent()
841 if (calendarDay.month.month != obtainedMonth_.month) { in ChangeVirtualNodeContent()
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/js-service-widget-ui/
H A Djs-service-widget-basic-calendar.md34 | month | int | 表示月份。 |
49 "month":1,
55 "month ": 12,
67 "month ": 12,
79 "month ": 12,
113 | $event.month | string | 选择的月份。 |
120 | $event.month | string | 请求的月份。 |
180 "month": "$event.month",
187 "month": "$event.month",
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/calendar/
H A Dcalendar_test_ng.cpp410 day.month.month = JUMP_MONTH;
497 day.month.month = JUMP_MONTH;
510 day.month.month = JUMP_MONTH + 1;
571 day.month.month = JUMP_MONTH;
584 day.month.month = JUMP_MONTH + 1;
672 day.month.month = JUMP_MONTH;
1022 calendarDay.month.month = calendarPattern->calendarDay_.month.month;
1282 today.month.month = JUMP_MONTH;
1289 calendarDay.month.month = JUMP_MONTH;
1508 calendarPaintMethod.currentMonth_.month = calendarDay.month.month + 1;
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkui/js-service-widget-ui/
H A Djs-service-widget-basic-calendar.md34 | month | int | Month. |
40 | lunarMonth | string | Lunar month. |
49 "month":1,
55 "month ": 12,
67 "month ": 12,
79 "month ": 12,
113 | $event.month | string | Selected month.|
120 | $event.month | string | Requested month. |
123 | $event.currentMonth | string | Current month.|
180 "month": "$event.month",
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Ddatepicker_pattern.cpp901 lunarDate.month = lunarDate.month + 1; // add to next month in HandleAddLunarDayChange()
904 lunarDate.month = lunarDate.month + 1; // add to next month in HandleAddLunarDayChange()
908 lunarDate.month = lunarDate.month + 1; // add to next month in HandleAddLunarDayChange()
1417 for (; month <= 12; ++month) { // month start from 1 to 12 in GetCurrentDateByMonthDaysColumn()
1469 for (; month <= 12; ++month) { // month start from 1 to 12 in GetCurrentLunarDateByMonthDaysColumn()
1478 --month; in GetCurrentLunarDateByMonthDaysColumn()
1482 lunarResult.month = month; in GetCurrentLunarDateByMonthDaysColumn()
1731 for (uint32_t month = startMonth; month <= endMonth; month++) { in SolarColumnsBuilding() local
2026 for (uint32_t month = 1; month < date.month; ++month) { // month start from 1 in LunarToSolar() local
2075 if (!(1 <= month && month <= 12)) { // solar month in [1,12] in GetSolarMonth()
[all …]
H A Ddate_time_animation_controller.cpp67 auto month = month_.Upgrade(); in PlayMovingInAnimation() local
68 CHECK_NULL_VOID(month); in PlayMovingInAnimation()
98 auto month = month_.Upgrade(); in PlayMovingOutAnimation() local
99 CHECK_NULL_VOID(month); in PlayMovingOutAnimation()
178 auto month = month_.Upgrade(); in PlayNewColumnOpacityInAnimation() local
179 CHECK_NULL_VOID(month); in PlayNewColumnOpacityInAnimation()
295 auto month = month_.Upgrade(); in PlayNewColumnOpacityOutAnimation() local
296 CHECK_NULL_VOID(month); in PlayNewColumnOpacityOutAnimation()
412 CHECK_NULL_VOID(month); in InitMoveRange()
432 auto month = *iter; in SetDatePicker() local
[all …]
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/
H A Dark_web_view_struct_utils.cpp25 .month = class_value.month, in ArkWebDateTimeClassToStruct()
36 .month = struct_value.month, in ArkWebDateTimeStructToClass()
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/
H A Dark_web_core_struct_utils.cpp25 .month = class_value.month, in ArkWebDateTimeClassToStruct()
36 .month = struct_value.month, in ArkWebDateTimeStructToClass()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_datepicker_ffi.h26 int32_t month; member
32 int64_t month; member
44 …iOHOSAceFrameworkDatePickerSetOnChange(void (*callback)(int32_t year, int32_t month, int32_t day));
46 void (*callback)(int32_t year, int32_t month, int32_t day));

12345678910