Home
last modified time | relevance | path

Searched refs:year (Results 1 – 25 of 37) sorted by relevance

12

/base/security/huks/services/huks_standard/huks_engine/main/core/include/
Dhks_attest.h77 uint32_t year; member
123 static inline uint32_t GetYearIndex(uint32_t year) in GetYearIndex() argument
125 …if ((year % 4 == 0) && ((year % 100 != 0) || (year % 400 == 0))) { /* 4/100/400 check whether it i… in GetYearIndex()
132 static inline uint32_t GetLeapDays(uint32_t year) in GetLeapDays() argument
134 … return ((year / 4) - (year / 100) + (year / 400)); /* 4/100/400 check whether it is a leap year */ in GetLeapDays()
/base/global/timezone/tool/update_tool/
Ddownload_iana.py56 year = local_time[0]
63 status = try_download(file_type, str(year) +
70 year -= 1
74 file_name = file_type + str(year) + version_suffixes[version_index] + \
/base/notification/distributed_notification_service/test/fuzztest/reminderrequestcalendar_fuzzer/
Dreminderrequestcalendar_fuzzer.cpp63 uint16_t year = *data % YEAR; in DoSomethingInterestingWithMyAPI() local
64 reminderRequestCalendar.GetDaysOfMonth(year, months); in DoSomethingInterestingWithMyAPI()
67 reminderRequestCalendar.GetNextDay(year, months, nowTime, target); in DoSomethingInterestingWithMyAPI()
77 reminderRequestCalendar.GetTimeInstantMilli(year, months, days, hour, minute, second); in DoSomethingInterestingWithMyAPI()
/base/usb/usb_manager/test/native/js_unittest/
DDateAndTimeUtil.js65 concatDate(year, month, date) { argument
66 return year + this.year + month + this.month + date + this.day;
/base/telephony/data_storage/common/include/
Dtime_util.h29 int year = START_YEAR + ltm->tm_year; in FormatDate() local
35 date.append(std::to_string(year)); in FormatDate()
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/src/
Dcm_x509.c201 pDataTime->year = CONVERT(bufTime->data); in GetX509Time()
202 if (pDataTime->year < 50) { /* 50 is used for the readable time */ in GetX509Time()
203 pDataTime->year += 100; /* 100 is used for the readable time */ in GetX509Time()
205 pDataTime->year += 1900; /* 1900 is used for the readable time */ in GetX509Time()
228 "%d-%d-%d", (int)dataTime.year, (int)dataTime.month, (int)dataTime.day) < 0) { in GetX509TimeFormat()
/base/notification/distributed_notification_service/frameworks/ans/src/
Dreminder_request_calendar.cpp102 uint8_t ReminderRequestCalendar::GetDaysOfMonth(const uint16_t &year, const uint8_t &month) in GetDaysOfMonth() argument
106 …days = ((((year % LEAP_PARAM_MIN == 0) && (year % LEAP_PARAM_MAX != 0)) || (year % SOLAR_YEAR == 0… in GetDaysOfMonth()
218 uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second) const in GetTimeInstantMilli() argument
221 tar.tm_year = GetCTime(TimeTransferType::YEAR, year); in GetTimeInstantMilli()
568 uint16_t year = 0; in AppendValuesBucket() local
581 year = calendar->GetYear(); in AppendValuesBucket()
593 values.PutInt(CALENDAR_YEAR, year); in AppendValuesBucket()
/base/security/device_security_level/baselib/utils/include/
Dutils_datetime.h31 uint16_t year; member
/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/
Dlog_print.h40 bool year; member
/base/update/updater/services/package/pkg_manager/
Dpkg_utils.cpp170 int year = nowTime.tm_year; in GetFileSize() local
171 if (year < MIN_YEAR) { in GetFileSize()
172 year = MIN_YEAR; in GetFileSize()
174 date = static_cast<uint16_t>(static_cast<uint16_t>(year - MIN_YEAR) << TM_YEAR_BITS); in GetFileSize()
/base/telephony/core_service/services/network_search/include/
Dnitz_update.h35 int32_t year; member
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/include/
Dcm_x509.h49 uint32_t year; member
/base/notification/distributed_notification_service/interfaces/inner_api/
Dreminder_request_calendar.h148 static uint8_t GetDaysOfMonth(const uint16_t &year, const uint8_t &month);
171 … uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second) const;
/base/global/i18n/frameworks/intl/include/
Di18n_calendar.h51 void Set(int32_t year, int32_t month, int32_t date);
/base/security/device_security_level/baselib/utils/src/
Dutils_datetime.c54 datetime->year = (uint16_t)(tm.tm_year + 1900); // need add 1900 in GetDateTimeByMillisecondSince1970()
/base/telephony/sms_mms/services/include/
Dsms_pdu_code_type.h70 unsigned char year; /* range 00-99 (96~99 : 19xx, 00~95 : 20xx) */ member
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_attest.c324 uint32_t year = time->year - ((time->year / HKS_DECIMAL_HUNDRED) * HKS_DECIMAL_HUNDRED); in GetTimeStampTee() local
325 timeStamp[i++] = (year / HKS_DECIMAL_TEN) + '0'; in GetTimeStampTee()
326 timeStamp[i++] = (year % HKS_DECIMAL_TEN) + '0'; in GetTimeStampTee()
345 uint32_t year = EPOCH_YEAR; in GenerateSysDateTime() local
348 while (tDays >= g_yearLengths[GetYearIndex(year)]) { in GenerateSysDateTime()
353 uint32_t newYear = year + carryOver; in GenerateSysDateTime()
354 uint32_t leapDays = GetLeapDays(newYear - 1) - GetLeapDays(year - 1); in GenerateSysDateTime()
355 tDays -= (newYear - year) * HKS_YEAR_DAYS; in GenerateSysDateTime()
357 year = newYear; in GenerateSysDateTime()
361 time->year = year; in GenerateSysDateTime()
[all …]
/base/global/i18n/frameworks/intl/src/
Ddate_time_format.cpp313 year = configs["year"]; in ParseConfigsPartOne()
368 …if (year.empty() && month.empty() && day.empty() && hour.empty() && minute.empty() && second.empty… in ComputeSkeleton()
371 AddOptions(year, yearChar); in ComputeSkeleton()
421 ComputePartOfPattern(year, yearChar, "yy", "Y"); in ComputePattern()
603 if (!year.empty()) { in GetAdditionalResolvedOptions()
604 map.insert(std::make_pair("year", year)); in GetAdditionalResolvedOptions()
679 return year; in GetYear()
Di18n_calendar.cpp194 void I18nCalendar::Set(int32_t year, int32_t month, int32_t date) in Set() argument
197 calendar_->set(year, month, date); in Set()
/base/notification/distributed_notification_service/frameworks/test/moduletest/
DReminderHelperTest.js215 year: 2025, property
258 year: 2025, property
407 year: 2025, property
885 year: 2025, property
922 year: 2025, property
1372 year: 2025, property
1459 year: 2025, property
1546 year: 2025, property
1608 year: 2025, property
/base/hiviewdfx/hiview_lite/
Dhiview_util.h59 uint16 year; member
/base/telephony/core_service/services/network_search/src/
Dnitz_update.cpp119 StrToInt(strYear, networkTime.year); in NitzParse()
177 if (networkTime.year < static_cast<int32_t>(CST_YEAR) || networkTime.month < 1) { in ProcessTime()
190 t.tm_year = networkTime.year - CST_YEAR; in ProcessTime()
/base/global/i18n_lite/frameworks/i18n/src/
Ddate_time_format_impl.cpp313 int32_t year = time.tm_year + YEAR_START; in ProcessWeekDayYear() local
315 int adjustYear = year - (year / ONE_HUNDRED_YEAR) * ONE_HUNDRED_YEAR; in ProcessWeekDayYear()
318 appendTo.append(FormatYear(year)); in ProcessWeekDayYear()
/base/telephony/sms_mms/services/gsm/
Dgsm_sms_param_codec.cpp156 (*ppParam)[offset++] = ((pTimeStamp->time.absolute.year % NUMBER_TEN) << 0x04) + in EncodeTime()
157 (pTimeStamp->time.absolute.year / NUMBER_TEN); in EncodeTime()
313 …pTimeStamp->time.absolute.year = (pTpdu[offset] & 0x0F) * NUMBER_TEN + ((pTpdu[offset] & 0xF0) >> … in DecodeTime()
/base/global/i18n/
DREADME.md34 Change the date and time formats \(such as the sequence of year, month, and day, month and week nam…

12