/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/ |
H A D | ark_web_core_struct_utils.cpp | 24 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 D | ark_web_view_struct_utils.cpp | 24 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 D | lunar_calendar.cpp | 97 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 D | holiday_manager.cpp | 51 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 D | holiday_manager.h | 38 // 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 D | lunar_calendar.h | 33 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 D | i18n_calendar.h | 52 void Set(int32_t year, int32_t month, int32_t date);
|
/base/global/timezone/tool/update_tool/ |
H A D | download_iana.py | 61 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 D | reminderrequestcalendar_fuzzer.cpp | 69 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 D | time_util.h | 29 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 D | utils_datetime.h | 31 uint16_t year; member
|
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/ |
H A D | ark_web_nweb_structs.h | 23 int32_t year; member
|
/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/ |
H A D | log_print.h | 40 bool year;
member
|
/base/web/webview/ohos_interface/include/ohos_nweb/ |
H A D | nweb_date_time_chooser.h | 26 int32_t year = 0; member
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | reminder_request_calendar.h | 148 * @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 D | pkg_utils.cpp | 228 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 D | i18n_test.cpp | 215 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 D | cm_x509.h | 51 uint32_t year; member
|
/base/telephony/core_service/services/network_search/include/ |
H A D | nitz_update.h | 37 int32_t year = 0; member
|
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/src/ |
H A D | dcm_attest.c | 332 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 D | reminder_request_calendar.cpp | 153 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 D | utils_datetime.c | 64 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 D | dcm_attest.h | 77 uint32_t year;
member
|
/base/telephony/sms_mms/services/sms/include/ |
H A D | sms_pdu_code_type.h | 70 uint8_t year; /* range 00-99 (96~99 : 19xx, 00~95 : 20xx) */ member
|
/base/web/webview/ohos_interface/ohos_glue/scripts/ |
H A D | system_util.py | 32 return str(datetime.datetime.now().year)
|