Home
last modified time | relevance | path

Searched refs:month (Results 1 – 25 of 28) sorted by relevance

12

/base/telephony/data_storage/common/include/
Dtime_util.h30 int month = 1 + ltm->tm_mon; in FormatDate() local
37 if (month < DOUBLE_DIGIT) { in FormatDate()
40 date.append(std::to_string(month)); in FormatDate()
/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
105 if (month == FEBRUARY) { in GetDaysOfMonth()
109 days = DAY_ARRAY[month - 1]; 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
222 tar.tm_mon = GetCTime(TimeTransferType::MONTH, month); in GetTimeInstantMilli()
267 bool ReminderRequestCalendar::IsRepeatMonth(uint8_t month) const in IsRepeatMonth()
269 return (repeatMonth_ & (1 << (month - 1))) > 0; in IsRepeatMonth()
289 void ReminderRequestCalendar::SetMonth(const uint8_t &month, const bool &isSet) in SetMonth() argument
291 if (month < JANUARY || month > DECEMBER) { in SetMonth()
295 repeatMonth_ |= 1 << (month - 1); in SetMonth()
[all …]
/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/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;
179 bool IsRepeatMonth(uint8_t month) const;
182 void SetMonth(const uint8_t &month, const bool &isSet);
/base/global/i18n/frameworks/intl/src/
Ddate_time_format.cpp316 month = configs["month"]; in ParseConfigsPartOne()
368 …if (year.empty() && month.empty() && day.empty() && hour.empty() && minute.empty() && second.empty… in ComputeSkeleton()
372 AddOptions(month, monthChar); in ComputeSkeleton()
426 if (!month.empty()) { in ComputePattern()
429 if (month == "numeric" && length != NUMERIC_LENGTH) { in ComputePattern()
431 } else if (month == "2-digit" && length != TWO_DIGIT_LENGTH) { in ComputePattern()
433 } else if (month == "long" && length != LONG_LENGTH) { in ComputePattern()
435 } else if (month == "short" && length != SHORT_LENGTH) { in ComputePattern()
437 } else if (month == "narrow" && length != NARROW_LENGTH) { in ComputePattern()
606 if (!month.empty()) { in GetAdditionalResolvedOptions()
[all …]
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/global/i18n/
DREADME.md34 Change the date and time formats \(such as the sequence of year, month, and day, month and week nam…
/base/telephony/core_service/services/network_search/include/
Dnitz_update.h36 int32_t month; member
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/include/
Dcm_x509.h50 uint32_t month; member
/base/global/i18n/frameworks/intl/include/
Di18n_calendar.h51 void Set(int32_t year, int32_t month, int32_t date);
Ddate_time_format.h72 std::string month; variable
/base/telephony/sms_mms/services/include/
Dsms_pdu_code_type.h71 unsigned char month; /* range 1-12 */ member
/base/notification/distributed_notification_service/frameworks/test/moduletest/
DReminderHelperTest.js216 month: 10, property
259 month: 10, property
408 month: 10, property
886 month: 10, property
923 month: 10, property
1373 month: 10, property
1460 month: 10, property
1547 month: 10, property
1609 month: 10, property
/base/hiviewdfx/hiview_lite/
Dhiview_util.h56 uint8 month; member
/base/telephony/core_service/services/network_search/src/
Dnitz_update.cpp120 StrToInt(strsRet[1], networkTime.month); in NitzParse()
177 if (networkTime.year < static_cast<int32_t>(CST_YEAR) || networkTime.month < 1) { in ProcessTime()
191 t.tm_mon = networkTime.month - 1; in ProcessTime()
/base/security/huks/services/huks_standard/huks_engine/main/core/include/
Dhks_attest.h76 uint32_t month; member
/base/global/i18n_lite/frameworks/i18n/src/
Ddate_time_format_impl.cpp263 int32_t month = time.tm_mon; in Process() local
265 appendTo.append(data->GetMonthName(month, DateTimeDataType::FORMAT_WIDE)); in Process()
267 appendTo.append(data->GetMonthName(month, DateTimeDataType::FORMAT_ABBR)); in Process()
269 ZeroPadding(appendTo, count, MAX_COUNT, month + 1); in Process()
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/src/
Dcm_x509.c206 pDataTime->month = CONVERT(bufTime->data + 2); in GetX509Time()
228 "%d-%d-%d", (int)dataTime.year, (int)dataTime.month, (int)dataTime.day) < 0) { in GetX509TimeFormat()
/base/telephony/sms_mms/services/gsm/
Dgsm_sms_param_codec.cpp158 (*ppParam)[offset++] = ((pTimeStamp->time.absolute.month % NUMBER_TEN) << 0x04) + in EncodeTime()
159 (pTimeStamp->time.absolute.month / NUMBER_TEN); in EncodeTime()
316 …pTimeStamp->time.absolute.month = (pTpdu[offset] & 0x0F) * NUMBER_TEN + ((pTpdu[offset] & 0xF0) >>… in DecodeTime()
/base/notification/distributed_notification_service/frameworks/js/napi/include/reminder/
Dreminder_common.h110 static bool CheckCalendarParams(const int32_t &year, const int32_t &month, const int32_t &day,
/base/hiviewdfx/hilog_lite/frameworks/mini/
Dhiview_output_log.c402 uint32 month, day, hour, min, sec; in LogCommonFmt() local
408 month = nowTime.tm_mon + 1; in LogCommonFmt()
418month, day, hour, min, sec, commonContentPtr->milli, commonContentPtr->task, g_logLevelInfo[level], in LogCommonFmt()
/base/notification/distributed_notification_service/frameworks/js/napi/src/reminder/
Dreminder_common.cpp461 bool ReminderCommon::CheckCalendarParams(const int32_t &year, const int32_t &month, const int32_t &… in CheckCalendarParams() argument
469 if ((month < 1) || (month > ReminderRequestCalendar::MAX_MONTHS_OF_YEAR)) { in CheckCalendarParams()
474 …nt8_t maxDaysOfMonth = ReminderRequestCalendar::GetDaysOfMonth(static_cast<uint16_t>(year), month); in CheckCalendarParams()
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_attest.c327 timeStamp[i++] = (time->month / HKS_DECIMAL_TEN) + '0'; in GetTimeStampTee()
328 timeStamp[i++] = (time->month % HKS_DECIMAL_TEN) + '0'; in GetTimeStampTee()
367 for (time->month = 0; iDays >= ip[time->month]; ++(time->month)) { in GenerateSysDateTime()
368 iDays -= ip[time->month]; in GenerateSysDateTime()
370 ++time->month; in GenerateSysDateTime()
411 … notBefore.year, notBefore.month, notBefore.day, notBefore.hour, notBefore.min, notBefore.seconds); in SetAttestCertValid()
/base/telephony/sms_mms/utils/
Dsms_common_utils.cpp260 tmInfo.tm_mon = (timeAbs.month - 0x01); in ConvertTime()
/base/global/i18n_lite/
DREADME.md12 …des i18n capabilities such as formatting the date and time, obtaining the month and week names, an…
40 1. Change the date and time formats \(such as the sequence of year, month, and day, month and week …
72 3. Obtain the month and week names in the format for the specified locale. The sample code is as fo…
80 …std::string month = formatter.GetMonthName(0, DateTimeDataType::FORMAT_WIDE); //: Obtain the month

12