/foundation/arkui/ace_engine/frameworks/base/utils/ |
H A D | date_util.h | 24 struct Date { struct 25 Date() = default; 26 Date(uint32_t year, uint32_t month, uint32_t day) : year(year), month(month), day(day) {} in Date() function 27 ~Date() = default; 29 static Date Current();
|
H A D | date_util.cpp | 22 Date Date::Current() in Current() 24 Date date; in Current() 35 bool Date::IsLeapYear(int32_t year) in IsLeapYear() 40 int32_t Date::DayOfMonth(int32_t year, int32_t month) in DayOfMonth() 68 int32_t Date::CalculateWeekDay(int32_t year, int32_t month, int32_t day) in CalculateWeekDay() 79 int64_t Date::GetMilliSecondsByDateTime(std::tm& dateTime) in GetMilliSecondsByDateTime()
|
/foundation/arkui/ace_engine/frameworks/base/i18n/ |
H A D | localization.h | 36 struct LunarDate : Date { 53 struct DateTime final : Date { 204 LunarDate GetLunarDate(Date date); 277 LunarDate GetIcuLunarDate(Date date);
|
H A D | localization.cpp | 569 LunarDate Localization::GetLunarDate(Date date) in GetLunarDate() 594 LunarDate Localization::GetIcuLunarDate(Date date) in GetIcuLunarDate()
|
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/include/ |
H A D | rdb_types.h | 213 struct Date { struct 214 Date() {} in Date() function 215 Date(int64_t date) : date(date) {} in Date() function
|
H A D | rdb_store.h | 83 * @brief Use Date replace DistributedRdb::Date namespace. 85 using Date = DistributedRdb::Date; 127 API_EXPORT operator std::map<PRIKey, Date>();
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/include/ |
H A D | napi_rdb_js_utils.h | 37 using Date = OHOS::DistributedRdb::Date; 120 napi_value Convert2JSValue(napi_env env, const Date &date);
|
H A D | napi_rdb_context.h | 71 std::map<RdbStore::PRIKey, RdbStore::Date> modifyTime;
|
/foundation/arkui/ace_engine/frameworks/core/components/calendar/ |
H A D | calendar_data_adapter.cpp | 56 Date currentDate = Date::Current(); in CalendarDataAdapter() 344 auto weekday = Date::CalculateWeekDay(dayInfo.month.year, dayInfo.month.month + 1, dayInfo.day); in SetOffDays() 423 auto currentWeekDay = Date::CalculateWeekDay(currentMonth.year, currentMonth.month + 1, 1); in FillPreMonthData() 425 auto lastMonthDays = Date::DayOfMonth(lastMonth.year, lastMonth.month + 1); in FillPreMonthData() 446 auto currentMonthDays = Date::DayOfMonth(currentMonth.year, currentMonth.month + 1); in FillCurrentMonthData()
|
H A D | rosen_render_calendar.cpp | 865 auto weekday = Date::CalculateWeekDay(dayInfo.month.year, dayInfo.month.month + 1, dayInfo.day); in InitWorkStateStyle()
|
/foundation/resourceschedule/ffrt/benchmarks/ |
H A D | benchmarks.sh | 55 stamp=$(git log --date=format:'%Y_%m_%d_%H_%M_%S' -1 | grep Date | sed -E 's/[^0-9]*([0-9_]*)/\1/g')
|
/foundation/arkui/ace_engine/test/mock/base/ |
H A D | mock_localization.cpp | 115 LunarDate Localization::GetLunarDate(Date date) in GetLunarDate()
|
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/ |
H A D | rdb_store_impl_test.cpp | 112 std::map<RdbStore::PRIKey, RdbStore::Date> result = in HWTEST_F() 141 std::map<RdbStore::PRIKey, RdbStore::Date> result = in HWTEST_F() 174 std::map<RdbStore::PRIKey, RdbStore::Date> resultMap = std::map<RdbStore::PRIKey, RdbStore::Date>(resultMapTmp); in HWTEST_F() 206 std::map<RdbStore::PRIKey, RdbStore::Date> result = store_->GetModifyTime("", "data_key", PKey); in HWTEST_F() 241 std::map<RdbStore::PRIKey, RdbStore::Date> result = in HWTEST_F()
|
/foundation/distributeddatamgr/relational_store/frameworks/cj/include/ |
H A D | relational_store_utils.h | 127 ModifyTime MapToModifyTime(std::map<NativeRdb::RdbStore::PRIKey, NativeRdb::RdbStore::Date> &map, int32_t &errCode);
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | rdb_store.cpp | 36 RdbStore::ModifyTime::operator std::map<PRIKey, Date>() in operator std::map() 45 std::map<PRIKey, Date> result; in operator std::map() 60 result[index] = Date(timeStamp); in operator std::map()
|
/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | picker_datetime_component.cpp | 183 Date date; in GetMonthDayFormatString()
|
H A D | picker_date_component.cpp | 510 Date result; in SolarToLunar()
|
/foundation/arkui/ace_engine/test/unittest/base/ |
H A D | base_utils_test.cpp | 119 Date oneDay; in HWTEST_F() 1278 Date::GetMilliSecondsByDateTime(dateTime); in HWTEST_F() 1282 Date::GetMilliSecondsByDateTime(dateTime); in HWTEST_F() 1286 Date::GetMilliSecondsByDateTime(dateTime); in HWTEST_F()
|
/foundation/distributeddatamgr/relational_store/test/native/relational_store_test/unittest/ |
H A D | rdb_store_test.cpp | 112 std::map<RdbStore::PRIKey, RdbStore::Date> result = in HWTEST_F() 141 std::map<RdbStore::PRIKey, RdbStore::Date> result = in HWTEST_F() 174 std::map<RdbStore::PRIKey, RdbStore::Date> resultMap = std::map<RdbStore::PRIKey, RdbStore::Date>(resultMapTmp); in HWTEST_F() 206 std::map<RdbStore::PRIKey, RdbStore::Date> result = store_->GetModifyTime("", "data_key", PKey); in HWTEST_F() 241 std::map<RdbStore::PRIKey, RdbStore::Date> result = in HWTEST_F()
|
/foundation/distributeddatamgr/relational_store/frameworks/cj/src/ |
H A D | relational_store_utils.cpp | 281 ModifyTime MapToModifyTime(std::map<NativeRdb::RdbStore::PRIKey, NativeRdb::RdbStore::Date> &map, int32_t &errCode) in MapToModifyTime()
|
H A D | relational_store_impl_rdbstore.cpp | 613 std::map<NativeRdb::RdbStore::PRIKey, NativeRdb::RdbStore::Date> map = in GetModifyTime()
|
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/src/ |
H A D | napi_rdb_js_utils.cpp | 238 napi_value Convert2JSValue(napi_env env, const Date &date) in Convert2JSValue()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar_picker/ |
H A D | calendar_dialog_pattern.cpp | 1050 int32_t preMonthDaysCount = (Date::CalculateWeekDay(year, month, 1) + 1) % WEEK_DAYS; in GetCalendarMonthData() 1051 int32_t nextMonthDaysCount = 6 - ((Date::CalculateWeekDay(year, month, currentMonthMaxDay) + 1) % WEEK_DAYS); in GetCalendarMonthData()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_calendar_picker.cpp | 183 return Date::GetMilliSecondsByDateTime(dateTime); in GetMSByDate()
|
H A D | js_datepicker.cpp | 894 auto milliseconds = Date::GetMilliSecondsByDateTime(dateTime); in GetDateObj()
|