Home
last modified time | relevance | path

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

12

/base/web/webview/ohos_glue/ohos_nweb/bridge/
Dark_web_view_struct_utils.cpp25 .month = class_value.month, in ArkWebDateTimeClassToStruct()
36 .month = struct_value.month, in ArkWebDateTimeStructToClass()
/base/global/i18n/frameworks/intl/src/
Dholiday_manager.cpp51 … struct tm tmObj = {.tm_mday = items[i].day, .tm_mon = items[i].month, .tm_year = items[i].year}; in HolidayManager()
60 items[i].month += MONTH_GREATER_ONE; in HolidayManager()
89 int32_t month = timObj->tm_mon + MONTH_GREATER_ONE; 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
108 formated += month < 10 ? ("0" + std::to_string(month)) : std::to_string(month); in Format()
207 holidayItem->month = timeObj.tm_mon; in ParseFileLine()
Ddate_time_format.cpp356 month = configs["month"]; in ParseConfigsPartOne()
408 …if (year.empty() && month.empty() && day.empty() && hour.empty() && minute.empty() && second.empty… in ComputeSkeleton()
413 AddOptions(month, monthChar); in ComputeSkeleton()
467 if (!month.empty()) { in ComputePattern()
470 if (month == "numeric" && length != NUMERIC_LENGTH) { in ComputePattern()
472 } else if (month == "2-digit" && length != TWO_DIGIT_LENGTH) { in ComputePattern()
474 } else if ((month == "long" && length != LONG_LENGTH) || (month == "auto" && in ComputePattern()
477 } else if ((month == "short" && length != SHORT_LENGTH) || (month == "auto" && in ComputePattern()
480 } else if (month == "narrow" && length != NARROW_LENGTH) { in ComputePattern()
686 if (!month.empty()) { in GetAdditionalResolvedOptions()
[all …]
Di18n_calendar.cpp195 void I18nCalendar::Set(int32_t year, int32_t month, int32_t date) in Set() argument
198 calendar_->set(year, month, date); in Set()
/base/global/i18n/frameworks/intl/include/
Dholiday_manager.h42 int32_t month = 0; member
56 bool IsHoliday(int32_t year, int32_t month, int32_t day);
67 std::string Format(int32_t year, int32_t month, int32_t day);
Di18n_calendar.h52 void Set(int32_t year, int32_t month, int32_t date);
/base/telephony/telephony_data/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/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/frameworks/ans/test/unittest/
Dreminder_request_calendar_test.cpp522 uint8_t month = 2; variable
523 uint8_t result = calendar->GetDaysOfMonth(year, month);
578 uint8_t month = -1; variable
580 calendar->SetMonth(month, isSet);
581 bool result = calendar->IsRepeatMonth(month);
597 uint8_t month = 13; variable
599 calendar->SetMonth(month, isSet);
600 bool result = calendar->IsRepeatMonth(month);
672 uint8_t month = 1; variable
673 calendar->SetMonth(month, isSet);
[all …]
/base/notification/distributed_notification_service/interfaces/inner_api/
Dreminder_request_calendar.h168 static uint8_t GetDaysOfMonth(const uint16_t &year, const uint8_t &month);
193 … uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second) const;
201 bool IsRepeatMonth(uint8_t month) const;
204 void SetMonth(const uint8_t &month, const bool &isSet);
/base/web/webview/ohos_glue/ohos_nweb/include/
Dark_web_nweb_structs.h23 int32_t month; member
/base/notification/distributed_notification_service/frameworks/ans/src/
Dreminder_request_calendar.cpp169 uint8_t ReminderRequestCalendar::GetDaysOfMonth(const uint16_t &year, const uint8_t &month) in GetDaysOfMonth() argument
172 if (month == FEBRUARY) { in GetDaysOfMonth()
176 days = DAY_ARRAY[month - 1]; in GetDaysOfMonth()
346 uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second) const in GetTimeInstantMilli() argument
350 tar.tm_mon = GetCTime(TimeTransferType::MONTH, month); in GetTimeInstantMilli()
410 bool ReminderRequestCalendar::IsRepeatMonth(uint8_t month) const in IsRepeatMonth()
412 if (month > MAX_MONTHS_OF_YEAR) { in IsRepeatMonth()
415 return (repeatMonth_ & (1 << (month - 1))) > 0; in IsRepeatMonth()
438 void ReminderRequestCalendar::SetMonth(const uint8_t &month, const bool &isSet) in SetMonth() argument
440 if (month < JANUARY || month > DECEMBER) { in SetMonth()
[all …]
/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/web/webview/ohos_interface/include/ohos_nweb/
Dnweb_date_time_chooser.h27 int32_t month = 0; member
/base/telephony/core_service/services/network_search/include/
Dnitz_update.h38 int32_t month = 0; member
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/include/
Dcm_x509.h50 uint32_t month; member
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/include/
Ddcm_attest.h76 uint32_t month; 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/telephony/sms_mms/services/sms/include/
Dsms_pdu_code_type.h71 uint8_t month; /* range 1-12 */ member
/base/hiviewdfx/hiview_lite/
Dhiview_util.h56 uint8 month; member
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_param_encode.cpp219 resultValue.push_back(((timeStamp->time.absolute.month % DIGIT_TEN) << HEX_VALUE_04) + in EncodeTimePdu()
220 (timeStamp->time.absolute.month / DIGIT_TEN)); in EncodeTimePdu()
/base/telephony/core_service/services/network_search/src/
Dnitz_update.cpp125 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/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/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()

12