Home
last modified time | relevance | path

Searched refs:year (Results 1 - 25 of 50) sorted by relevance

12

/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/
H A Dark_web_core_struct_utils.cpp24 ArkWebDateTime struct_value = { .year = class_value.year, in ArkWebDateTimeClassToStruct()
35 OHOS::NWeb::DateTime class_value = { .year = struct_value.year, in ArkWebDateTimeStructToClass()
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/
H A Dark_web_view_struct_utils.cpp24 ArkWebDateTime struct_value = { .year = class_value.year, in ArkWebDateTimeClassToStruct()
35 OHOS::NWeb::DateTime class_value = { .year = struct_value.year, in ArkWebDateTimeStructToClass()
/base/global/i18n/frameworks/intl/src/
H A Dlunar_calendar.cpp97 bool LunarCalendar::SetGregorianDate(int32_t year, int32_t month, int32_t day) in SetGregorianDate() argument
99 ConvertDate(year, month, day); in SetGregorianDate()
101 isValidDate = VerifyDate(year, month, day); in SetGregorianDate()
105 solorYear = year; 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()
122 HILOG_ERROR_I18N("ConvertDate: get year failed"); in ConvertDate()
135 year = tempYear; in ConvertDate()
233 bool LunarCalendar::VerifyDate(int32_t year, int32_t month, int32_t day) in VerifyDate() argument
235 if ((year < VALID_START_YEA in VerifyDate()
258 IsGregorianLeapYear(int32_t year) IsGregorianLeapYear() argument
[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()
59 items[i].year += YEAR_START; in HolidayManager()
88 int32_t year = timObj->tm_year + YEAR_START; 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
106 formated += std::to_string(year); in Format()
126 std::vector<HolidayInfoItem> HolidayManager::GetHolidayInfoItemArray(int32_t year)
129 std::string formatedYear = std::to_string(year);
[all...]
/base/global/i18n/frameworks/intl/include/
H A Dholiday_manager.h38 // Holiday start year
39 int32_t year = 0; member
56 bool IsHoliday(int32_t year, int32_t month, int32_t day);
57 std::vector<HolidayInfoItem> GetHolidayInfoItemArray(int32_t year);
67 std::string Format(int32_t year, int32_t month, int32_t day);
H A Dlunar_calendar.h33 bool SetGregorianDate(int32_t year, int32_t month, int32_t day);
40 bool VerifyDate(int32_t year, int32_t month, int32_t day);
41 void ConvertDate(int32_t& year, int32_t& month, int32_t& day);
46 bool IsGregorianLeapYear(int32_t year);
H A Di18n_calendar.h52 void Set(int32_t year, int32_t month, int32_t date);
/base/global/timezone/tool/update_tool/
H A Ddownload_iana.py61 year = local_time[0]
68 status = try_download(file_type, str(year) +
75 year -= 1
79 file_name = file_type + str(year) + version_suffixes[version_index] + \
/base/notification/distributed_notification_service/test/fuzztest/reminderrequestcalendar_fuzzer/
H A Dreminderrequestcalendar_fuzzer.cpp69 uint16_t year = *data % YEAR; in DoSomethingInterestingWithMyAPI() local
70 reminderRequestCalendar.GetDaysOfMonth(year, months); in DoSomethingInterestingWithMyAPI()
73 reminderRequestCalendar.GetNextDay(year, months, nowTime, target); in DoSomethingInterestingWithMyAPI()
83 reminderRequestCalendar.GetTimeInstantMilli(year, months, days, hour, minute, second); in DoSomethingInterestingWithMyAPI()
/base/telephony/telephony_data/common/include/
H A Dtime_util.h29 int year = START_YEAR + ltm->tm_year; in FormatDate() local
35 date.append(std::to_string(year)); in FormatDate()
/base/security/device_security_level/baselib/utils/include/
H A Dutils_datetime.h31 uint16_t year; member
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/
H A Dark_web_nweb_structs.h23 int32_t year; member
/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/
H A Dlog_print.h40 bool year; member
/base/web/webview/ohos_interface/include/ohos_nweb/
H A Dnweb_date_time_chooser.h26 int32_t year = 0; member
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dreminder_request_calendar.h148 * @brief Sets the year.
150 * @param year Indicates the year.
152 void SetYear(const uint16_t year);
197 * @brief Sets the first designate year.
199 * @param firstDesignateYear Indicates the first designate year.
301 static uint8_t GetDaysOfMonth(const uint16_t &year, const uint8_t &month);
330 uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second) const;
393 // for check leap year
/base/update/updater/services/package/pkg_manager/
H A Dpkg_utils.cpp228 int year = nowTime.tm_year; in GetFileSize() local
229 if (year < MIN_YEAR) { in GetFileSize()
230 year = MIN_YEAR; in GetFileSize()
232 date = static_cast<uint16_t>(static_cast<uint16_t>(year - MIN_YEAR) << TM_YEAR_BITS); in GetFileSize()
/base/global/i18n/frameworks/intl/test/unittest/
H A Di18n_test.cpp215 int32_t year = buddhistCalendar.Get(UCalendarDateFields::UCAL_YEAR); in HWTEST_F() local
216 EXPECT_EQ(year, 2023); in HWTEST_F()
1483 int32_t year = ptr->GetLunarYear(); local
1487 EXPECT_EQ(year, 1900);
1493 year = ptr->GetLunarYear();
1497 EXPECT_EQ(year, 1900);
1503 year = ptr->GetLunarYear();
1507 EXPECT_EQ(year, 2100);
1513 year = ptr->GetLunarYear();
1517 EXPECT_EQ(year, 210
1532 int32_t year = ptr->GetLunarYear(); HWTEST_F() local
1581 int32_t year = ptr->GetLunarYear(); HWTEST_F() local
[all...]
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/include/
H A Dcm_x509.h51 uint32_t year; member
/base/telephony/core_service/services/network_search/include/
H A Dnitz_update.h37 int32_t year = 0; member
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/src/
H A Ddcm_attest.c332 static inline uint32_t GetYearIndex(uint32_t year) in GetYearIndex() argument
334 if ((year % 4 == 0) && ((year % 100 != 0) || (year % 400 == 0))) { /* 4/100/400 check whether it is a leap year */ in GetYearIndex()
341 static inline uint32_t GetLeapDays(uint32_t year) in GetLeapDays() argument
343 return ((year / 4) - (year / 100) + (year / 400)); /* 4/100/400 check whether it is a leap year */ in GetLeapDays()
369 uint32_t year = time->year - ((time->year / HKS_DECIMAL_HUNDRED) * HKS_DECIMAL_HUNDRED); GetTimeStampTee() local
390 uint32_t year = EPOCH_YEAR; GenerateSysDateTime() local
[all...]
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dreminder_request_calendar.cpp153 void ReminderRequestCalendar::SetYear(const uint16_t year) in SetYear() argument
155 year_ = year; in SetYear()
218 uint8_t ReminderRequestCalendar::GetDaysOfMonth(const uint16_t &year, const uint8_t &month) in GetDaysOfMonth() argument
222 days = ((((year % LEAP_PARAM_MIN == 0) && (year % LEAP_PARAM_MAX != 0)) || (year % SOLAR_YEAR == 0)) in GetDaysOfMonth()
464 uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second) const in GetTimeInstantMilli()
467 tar.tm_year = GetCTime(TimeTransferType::YEAR, year); in GetTimeInstantMilli()
662 WRITE_UINT16_RETURN_FALSE_LOG(parcel, year_, "year"); in Marshalling()
710 READ_UINT16_RETURN_FALSE_LOG(parcel, year_, "year"); in ReadFromParcel()
463 GetTimeInstantMilli( uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second) const GetTimeInstantMilli() argument
[all...]
/base/security/device_security_level/baselib/utils/src/
H A Dutils_datetime.c64 datetime->year = (uint16_t)(tm.tm_year + 1900); // need add 1900 in GetDateTimeByMillisecondSince1970()
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/include/
H A Ddcm_attest.h77 uint32_t year; member
/base/telephony/sms_mms/services/sms/include/
H A Dsms_pdu_code_type.h70 uint8_t year; /* range 00-99 (96~99 : 19xx, 00~95 : 20xx) */ member
/base/web/webview/ohos_interface/ohos_glue/scripts/
H A Dsystem_util.py32 return str(datetime.datetime.now().year)

Completed in 14 milliseconds

12