Home
last modified time | relevance | path

Searched refs:month (Results 1 - 25 of 78) sorted by relevance

1234

/foundation/arkui/ace_engine/frameworks/core/components/calendar/
H A Dcalendar_data_adapter.cpp58 today_.month.year = static_cast<int32_t>(currentDate.year); in CalendarDataAdapter()
59 today_.month.month = static_cast<int32_t>(currentDate.month) - 1; in CalendarDataAdapter()
96 if (!ParseDayNumberProp(item, CalendarDay::MONTH, dayInfo.month.month)) { in ParseData()
99 if (!ParseDayNumberProp(item, CalendarDay::YEAR, dayInfo.month.year)) { in ParseData()
106 if (dayInfo.month == result.month) { in ParseData()
113 dayInfo.today = dayInfo.month in ParseData()
487 auto month = months.front(); ParseCalendarData() local
[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 Dcalendar_data_adapter.h45 // calendar month value is from 0 to 11
46 int32_t month = CALENDAR_MIN_DATE_MONTH; member
50 return calendarMonth.month == month && calendarMonth.year == year; in operator ==()
54 return calendarMonth.month != month || calendarMonth.year != year; in operator !=()
58 return year > calendarMonth.year || (year == calendarMonth.year && month > calendarMonth.month); in operator >()
62 return year < calendarMonth.year || (year == calendarMonth.year && month < calendarMonth.month); in operator <()
132 CalendarMonth month; global() member
157 CalendarMonth month; global() member
171 CalendarMonth month; global() member
196 int32_t month = 0; global() member
266 AddPendingRequest(const CalendarMonth& month, const int32_t indexOfContainer) AddPendingRequest() argument
[all...]
H A Drosen_render_calendar.cpp385 day.month.month != currentMonth_.month) { in PaintDay()
405 if (day.month.month == currentMonth_.month) { in PaintDay()
480 if (day.month.month != currentMonth_.month) { in SetNonFocusStyle()
547 if (calendarController_->FirstSetToday() && IsToday(day) && (day.month in DrawCardCalendar()
[all...]
H A Drender_calendar.cpp40 LOGE("calendar month component is null"); in Update()
92 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()
[all...]
/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 add one. 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 in CalculateWeekDay()
[all...]
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
/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Dpicker_date_component.cpp28 yearColumn->SetWidthRatio(3); // year:month:day = 3:2:2 in PickerDateComponent()
31 monthColumn->SetWidthRatio(2); // year:month:day = 3:2:2 in PickerDateComponent()
34 dayColumn->SetWidthRatio(2); // year:month:day = 3:2:2 in PickerDateComponent()
36 if (order.size() != 3) { // has 3 columns: year month day in PickerDateComponent()
99 // W3C's month is between 0 to 11, need to reduce one. in GetSelectedObject()
144 LOGE("year or month or day column is null."); in GetCurrentDate()
150 result.SetMonth(monthColumn->GetCurrentIndex() + 1); // month from 1 to 12, index from 0 to 11. in GetCurrentDate()
166 LOGE("year or month or day column is null."); in GetCurrentLunarDate()
174 lunarResult.month = monthColumn->GetCurrentIndex() + 1; // month fro in GetCurrentLunarDate()
474 GetMonthFormatString(uint32_t month, bool isLunar, bool isLeap) const GetMonthFormatString() argument
551 GetLunarMaxDay(uint32_t year, uint32_t month, bool isLeap) const GetLunarMaxDay() argument
[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);
175 uint32_t leapMonth = LUNAR_INFO[lunarYear - YEAR_START] & 0xf; // use 0xf to get leap month info in GetLunarLeapMonth()
185 : 0; // big month 30 days other 29 in GetLunarLeapDays()
194 for (uint32_t i = 0x8000; i > 0x8; i >>= 1) { // get month info from bit of LUNAR_INFO in GetLunarYearDays()
206 uint32_t month = static_cast<uint32_t>(lunarMonth); in GetLunarMonthDays() local
207 // big month 30 days other 29 in GetLunarMonthDays()
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);
252 std::optional<uint32_t> month; global() member in OHOS::Ace::PickerDateF
267 CreateMonth(uint32_t month, bool lunar = false, bool leap = false) CreateMonth() argument
284 CreateMonthDay(uint32_t month, uint32_t day, bool lunar = false, bool leap = false) CreateMonthDay() argument
[all...]
H A Dpicker_data.cpp32 date.SetMonth(local->tm_mon + 1); // local month start from 0 to 11, need add one. in Current()
38 uint32_t PickerDate::GetMaxDay(uint32_t year, uint32_t month) in GetMaxDay() argument
40 if (month == 2) { // days count in february is different between leap year and other. in GetMaxDay()
45 switch (month) { in GetMaxDay()
55 return 30; // other month has 30 days in GetMaxDay()
73 date.month = month_ ? month_ - 1 : 0; // W3C's month start from 0 to 11 in ToString()
78 return std::string("{\"year\":") + std::to_string(year_) + ",\"month\":" + std::to_string(month_) + in ToString()
86 // month start from 1 in ToDays()
87 for (uint32_t month in ToDays()
267 uint32_t month = (index > 12 ? index - 12 : index); Init() local
288 GetSolarMonth(uint32_t month) GetSolarMonth() argument
306 GetLunarMonth(uint32_t month, bool isLeap) GetLunarMonth() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/
H A Dcalendar_pattern.cpp233 auto currentMonth = calendarDay_.month; in FireFirstRequestData()
235 json->Put("currentMonth", currentMonth.month); in FireFirstRequestData()
237 json->Put("month", currentMonth.month); in FireFirstRequestData()
252 json->Put("month", preMonth_.month); in FireRequestData()
256 json->Put("month", nextMonth_.month); in FireRequestData()
258 json->Put("currentYear", calendarDay_.month.year); in FireRequestData()
259 json->Put("currentMonth", calendarDay_.month in FireRequestData()
263 FireGoToRequestData(int32_t year, int32_t month, int32_t day) FireGoToRequestData() argument
[all...]
H A Dcalendar_month_pattern.h85 if (day.month.year == calendarDay.month.year && day.month.month == calendarDay.month.month && in SetCalendarDay()
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()
181 json->Put("year", obtainedMonth_.days[selectedIndex].month.year); in SetVirtualNodeUserSelected()
301 json->Put("month", obtainedMonth.days[index].month in OnClick()
[all...]
H A Dcalendar_paint_method.cpp217 // First of all, check whether the day is current month or not, and set text style. in DrawCalendar()
220 if (day.focused && day.month.month == currentMonth_.month) { in DrawCalendar()
281 if (day.month.year == obtainedMonth_.year && day.month.month == obtainedMonth_.month) { in DrawCalendarPickerBackgroundArea()
348 // Set the noncurrent month style and current month styl in SetDayTextStyle()
[all...]
H A Dcalendar_controller_model_ng.cpp32 void CalendarControllerModelNG::GoTo(const int32_t& year, const int32_t& month, const int32_t& day, in GoTo() argument
38 controllerNG->GoTo(year, month, day); in GoTo()
H A Dcalendar_controller_ng.cpp30 void CalendarControllerNg::GoTo(int32_t year, int32_t month, int32_t day) in GoTo() argument
35 calendarPattern->FireGoToRequestData(year, month, day); in GoTo()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar_picker/
H A Dcalendar_dialog_pattern.cpp615 return day.month.year == currentMonthData.year && day.month.month == currentMonthData.month; in HandleCalendarNodeKeyEvent()
627 return day.month.year == currentMonthData.year && day.month.month == currentMonthData.month; in HandleCalendarNodeKeyEvent()
639 PickerDate selectedDay(focusedDay_.month.year, focusedDay_.month in HandleCalendarNodeKeyEvent()
1039 GetCalendarMonthData(int32_t year, int32_t month, ObtainedMonth& calendarMonthData) GetCalendarMonthData() argument
[all...]
/foundation/arkui/ace_engine/test/unittest/core/pattern/calendar/
H A Dcalendar_paint_method_test.cpp224 calendarDay.month = calendarMonth; in HWTEST_F()
230 EXPECT_EQ(calendarDay.month.month, paintMethod->currentMonth_.month); in HWTEST_F()
255 calendarDay.month.year = 1; in HWTEST_F()
256 calendarDay.month.month = 1; in HWTEST_F()
258 EXPECT_NE(calendarDay.month.year, paintMethod->obtainedMonth_.year); in HWTEST_F()
283 calendarDay.month.year = 1; in HWTEST_F()
284 calendarDay.month in HWTEST_F()
[all...]
H A Dcalendar_test_ng.cpp301 obtainedMonth.month = MONTH_VALUE; in HWTEST_F()
324 calendarMonth.month = MONTH_VALUE; in HWTEST_F()
325 calendarDay.month = calendarMonth; in HWTEST_F()
330 EXPECT_EQ(pattern->GetCurrentMonthData().month, MONTH_VALUE); in HWTEST_F()
333 EXPECT_EQ(pattern->GetPreMonthData().month, MONTH_VALUE); in HWTEST_F()
336 EXPECT_EQ(pattern->GetNextMonthData().month, MONTH_VALUE); in HWTEST_F()
352 EXPECT_EQ(pattern->GetCalendarDay().month.year, YEAR_VALUE); in HWTEST_F()
353 EXPECT_EQ(pattern->GetCalendarDay().month.month, MONTH_VALUE); in HWTEST_F()
401 obtainedMonth.month in HWTEST_F()
[all...]
/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 CJ_EXPORT void FfiOHOSAceFrameworkDatePickerSetOnChange(void (*callback)(int32_t year, int32_t month, int32_t day));
46 void (*callback)(int32_t year, int32_t month, int32_t day));
H A Dcj_datepicker_ffi.cpp36 pickerDate.SetMonth(data.month); in ParseDate()
52 const auto month = argsPtr->GetValue("month")->GetInt() + 1; // 0-11 means 1 to 12 months in DatePickerChangeEventToFfi() local
56 result.month = month; in DatePickerChangeEventToFfi()
121 void (*callback)(int32_t year, int32_t month, int32_t day)) in FfiOHOSAceFrameworkDatePickerSetOnChange()
126 lambda(infoResult.year, infoResult.month, infoResult.day); in FfiOHOSAceFrameworkDatePickerSetOnChange()
138 void (*callback)(int32_t year, int32_t month, int32_t day)) in FfiOHOSAceFrameworkDatePickerSetOnDateChange()
143 lambda(infoResult.year, infoResult.month, infoResult.day); in FfiOHOSAceFrameworkDatePickerSetOnDateChange()
120 FfiOHOSAceFrameworkDatePickerSetOnChange( void (*callback)(int32_t year, int32_t month, int32_t day)) FfiOHOSAceFrameworkDatePickerSetOnChange() argument
137 FfiOHOSAceFrameworkDatePickerSetOnDateChange( void (*callback)(int32_t year, int32_t month, int32_t day)) FfiOHOSAceFrameworkDatePickerSetOnDateChange() argument
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Ddate_time_animation_controller.cpp67 auto month = month_.Upgrade(); in PlayMovingInAnimation() local
68 CHECK_NULL_VOID(month); in PlayMovingInAnimation()
72 auto monthRenderContext = month->GetRenderContext(); in PlayMovingInAnimation()
98 auto month = month_.Upgrade(); in PlayMovingOutAnimation() local
99 CHECK_NULL_VOID(month); in PlayMovingOutAnimation()
103 auto monthRenderContext = month->GetRenderContext(); in PlayMovingOutAnimation()
178 auto month = month_.Upgrade(); in PlayNewColumnOpacityInAnimation() local
179 CHECK_NULL_VOID(month); in PlayNewColumnOpacityInAnimation()
182 auto monthRender = month->GetRenderContext(); in PlayNewColumnOpacityInAnimation()
295 auto month in PlayNewColumnOpacityOutAnimation() local
411 auto month = month_.Upgrade(); InitMoveRange() local
432 auto month = *iter; SetDatePicker() local
[all...]
H A Ddatepicker_pattern.cpp63 std::unordered_map<uint32_t, std::string> DatePickerPattern::solarMonths_; // solar month from 1 to 12,count is 12
65 std::unordered_map<uint32_t, std::string> DatePickerPattern::lunarMonths_; // lunar month from 1 to 24, count is 24
67 std::vector<std::string> DatePickerPattern::tagOrder_; // order of year month day
581 allChildNode["month"] = monthNode; in GetAllChildNode()
607 RefPtr<UINode> month; in OrderAllChildNode() local
610 processDateNode(month, day, year); in OrderAllChildNode()
612 processDateNode(year, day, month); in OrderAllChildNode()
614 processDateNode(year, month, day); in OrderAllChildNode()
617 stackMonth = DynamicCast<FrameNode>(month); in OrderAllChildNode()
639 auto monthNode = allChildNode["month"]; in FlushColumn()
1371 RefPtr<UINode> month; OrderCurrentLunarDate() local
1464 RefPtr<UINode> month; OrderCurrentDateByYearMonthDayColumn() local
1514 uint32_t month = 1; GetCurrentDateByMonthDaysColumn() local
1566 uint32_t month = 1; GetCurrentLunarDateByMonthDaysColumn() local
2095 GetLunarMaxDay(uint32_t year, uint32_t month, bool isLeap) const GetLunarMaxDay() argument
2170 GetSolarMonth(uint32_t month) GetSolarMonth() argument
2210 GetLunarMonth(uint32_t month, bool isLeap) GetLunarMonth() argument
[all...]
/foundation/arkui/ace_engine_lite/frameworks/examples/showcase/src/main/js/default/pages/component/list/list/list14/
H A Dindex.js144 let month = now.getMonth() + 1;
150 month = (month < 10 ? '0' : '') + month;
156 return year + '-' + month + '-' + day + ' ' + hours + ':' + minutes + ':' + seconds;
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_calendar_controller.cpp86 int32_t month = 0; in GoTo() local
89 ConvertFromJSValue(obj->GetProperty("month"), month); in GoTo()
91 CalendarControllerModel::GetInstance()->GoTo(year, month, day, controller_); in GoTo()

Completed in 21 milliseconds

1234