Home
last modified time | relevance | path

Searched refs:Date (Results 1 - 25 of 26) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/base/utils/
H A Ddate_util.h24 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 Ddate_util.cpp22 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 Dlocalization.h36 struct LunarDate : Date {
53 struct DateTime final : Date {
204 LunarDate GetLunarDate(Date date);
277 LunarDate GetIcuLunarDate(Date date);
H A Dlocalization.cpp569 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 Drdb_types.h213 struct Date { struct
214 Date() {} in Date() function
215 Date(int64_t date) : date(date) {} in Date() function
H A Drdb_store.h83 * @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 Dnapi_rdb_js_utils.h37 using Date = OHOS::DistributedRdb::Date;
120 napi_value Convert2JSValue(napi_env env, const Date &date);
H A Dnapi_rdb_context.h71 std::map<RdbStore::PRIKey, RdbStore::Date> modifyTime;
/foundation/arkui/ace_engine/frameworks/core/components/calendar/
H A Dcalendar_data_adapter.cpp56 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 Drosen_render_calendar.cpp865 auto weekday = Date::CalculateWeekDay(dayInfo.month.year, dayInfo.month.month + 1, dayInfo.day); in InitWorkStateStyle()
/foundation/resourceschedule/ffrt/benchmarks/
H A Dbenchmarks.sh55 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 Dmock_localization.cpp115 LunarDate Localization::GetLunarDate(Date date) in GetLunarDate()
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/
H A Drdb_store_impl_test.cpp112 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 Drelational_store_utils.h127 ModifyTime MapToModifyTime(std::map<NativeRdb::RdbStore::PRIKey, NativeRdb::RdbStore::Date> &map, int32_t &errCode);
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Drdb_store.cpp36 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 Dpicker_datetime_component.cpp183 Date date; in GetMonthDayFormatString()
H A Dpicker_date_component.cpp510 Date result; in SolarToLunar()
/foundation/arkui/ace_engine/test/unittest/base/
H A Dbase_utils_test.cpp119 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 Drdb_store_test.cpp112 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 Drelational_store_utils.cpp281 ModifyTime MapToModifyTime(std::map<NativeRdb::RdbStore::PRIKey, NativeRdb::RdbStore::Date> &map, int32_t &errCode) in MapToModifyTime()
H A Drelational_store_impl_rdbstore.cpp613 std::map<NativeRdb::RdbStore::PRIKey, NativeRdb::RdbStore::Date> map = in GetModifyTime()
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/src/
H A Dnapi_rdb_js_utils.cpp238 napi_value Convert2JSValue(napi_env env, const Date &date) in Convert2JSValue()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar_picker/
H A Dcalendar_dialog_pattern.cpp1050 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 Djs_calendar_picker.cpp183 return Date::GetMilliSecondsByDateTime(dateTime); in GetMSByDate()
H A Djs_datepicker.cpp894 auto milliseconds = Date::GetMilliSecondsByDateTime(dateTime); in GetDateObj()

Completed in 36 milliseconds

12