Home
last modified time | relevance | path

Searched refs:month (Results 1 - 25 of 42) sorted by relevance

12

/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webcore/
H A Dark_web_core_struct_utils.cpp25 .month = class_value.month, in ArkWebDateTimeClassToStruct()
36 .month = struct_value.month, in ArkWebDateTimeStructToClass()
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/
H A 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/
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()
106 solorMonth = month; 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()
127 HILOG_ERROR_I18N("ConvertDate: get month failed"); in ConvertDate()
136 month = tempMonth; in ConvertDate()
233 bool LunarCalendar::VerifyDate(int32_t year, int32_t month, int32_t day) in VerifyDate() argument
240 if ((month < VALID_START_MONT in VerifyDate()
[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()
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()
[all...]
H A Ddate_time_format.cpp357 if (configs.count("month") > 0) { in ParseConfigsPartOne()
358 month = configs["month"]; in ParseConfigsPartOne()
410 if (year.empty() && month.empty() && day.empty() && hour.empty() && minute.empty() && second.empty() && in ComputeSkeleton()
415 AddOptions(month, monthChar); in ComputeSkeleton()
469 if (!month.empty()) { in ComputePattern()
472 if (month == "numeric" && length != NUMERIC_LENGTH) { in ComputePattern()
474 } else if (month == "2-digit" && length != TWO_DIGIT_LENGTH) { in ComputePattern()
476 } else if ((month == "long" && length != LONG_LENGTH) || (month in ComputePattern()
[all...]
H A Di18n_calendar.cpp197 void I18nCalendar::Set(int32_t year, int32_t month, int32_t date) in Set() argument
201 icuCalendar->set(year, month, date); in Set()
/base/global/i18n/frameworks/intl/include/
H A Dholiday_manager.h41 // Holiday start month
42 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);
75 static const int32_t MONTH_GREATER_ONE = 1; // 1 is real month greater than display
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);
H A Di18n_calendar.h52 void Set(int32_t year, int32_t month, int32_t date);
/base/telephony/telephony_data/common/include/
H A 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/interfaces/inner_api/
H A Dreminder_request_calendar.h48 * @param repeatDays Indicates the days in a month when this reminder will be repeated. For example,
130 * @brief Gets the repeat month.
155 * @brief Sets the month.
157 * @param month Indicates the month.
159 void SetMonth(const uint8_t month);
190 * @brief Sets the repeat month.
192 * @param repeatMonth Indicates the repeat month.
204 * @brief Sets the first designate month.
206 * @param firstDesignateMonth Indicates the first designate month
[all...]
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dreminder_request_calendar.cpp158 void ReminderRequestCalendar::SetMonth(const uint8_t month) in SetMonth() argument
160 month_ = month; in SetMonth()
218 uint8_t ReminderRequestCalendar::GetDaysOfMonth(const uint16_t &year, const uint8_t &month) in GetDaysOfMonth() argument
221 if (month == FEBRUARY) { in GetDaysOfMonth()
225 days = DAY_ARRAY[month - 1]; in GetDaysOfMonth()
464 uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second) const in GetTimeInstantMilli()
468 tar.tm_mon = GetCTime(TimeTransferType::MONTH, month); in GetTimeInstantMilli()
528 bool ReminderRequestCalendar::IsRepeatMonth(uint8_t month) const in IsRepeatMonth()
530 if (month > MAX_MONTHS_OF_YEAR) { in IsRepeatMonth()
533 return (repeatMonth_ & (1 << (month in IsRepeatMonth()
463 GetTimeInstantMilli( uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second) const GetTimeInstantMilli() argument
556 SetMonth(const uint8_t &month, const bool &isSet) SetMonth() argument
[all...]
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/include/
H A Dark_web_nweb_structs.h24 int32_t month; member
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dreminder_request_calendar_test.cpp117 EXPECT_TRUE(firstDesignateMonth == calendar->GetFirstDesignageMonth()) << "Set first designate month error."; in HWTEST_F()
159 << "Set repeat month with 1 error."; in HWTEST_F()
167 << "Set repeat month with 12 error."; in HWTEST_F()
177 << "Set repeat month with 1~12 error."; in HWTEST_F()
203 EXPECT_TRUE(actualRepeatMonths.size() == 0) << "Set repeat month with -1 error."; in HWTEST_F()
210 EXPECT_TRUE(actualRepeatMonths.size() == 0) << "Set repeat month with 13 error."; in HWTEST_F()
519 uint8_t month = 2; in HWTEST_F() local
520 uint8_t result = calendar->GetDaysOfMonth(year, month); in HWTEST_F()
575 uint8_t month = -1; in HWTEST_F() local
577 calendar->SetMonth(month, isSe in HWTEST_F()
594 uint8_t month = 13; HWTEST_F() local
669 uint8_t month = 1; HWTEST_F() local
716 uint8_t month = 2; HWTEST_F() local
753 uint8_t month = 2; HWTEST_F() local
799 uint8_t month = 1; HWTEST_F() local
843 uint8_t month = 1; HWTEST_F() local
887 uint8_t month = 2; HWTEST_F() local
[all...]
/base/web/webview/ohos_interface/include/ohos_nweb/
H A Dnweb_date_time_chooser.h27 int32_t month = 0; member
/base/global/i18n/frameworks/intl/test/unittest/
H A Di18n_test.cpp236 int32_t month = gregoryCalendar.Get(UCalendarDateFields::UCAL_MONTH); in HWTEST_F() local
237 EXPECT_EQ(month, 2); in HWTEST_F()
1484 int32_t month = ptr->GetLunarMonth(); local
1488 EXPECT_EQ(month, 1);
1494 month = ptr->GetLunarMonth();
1498 EXPECT_EQ(month, 5);
1504 month = ptr->GetLunarMonth();
1508 EXPECT_EQ(month, 1);
1514 month = ptr->GetLunarMonth();
1518 EXPECT_EQ(month, 1
1533 int32_t month = ptr->GetLunarMonth(); HWTEST_F() local
1582 int32_t month = ptr->GetLunarMonth(); HWTEST_F() local
[all...]
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/include/
H A Dcm_x509.h52 uint32_t month; member
/base/telephony/core_service/services/network_search/include/
H A Dnitz_update.h38 int32_t month = 0; member
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/include/
H A Ddcm_attest.h76 uint32_t month; member
/base/telephony/sms_mms/services/sms/include/
H A Dsms_pdu_code_type.h71 uint8_t month; /* range 1-12 */ member
/base/telephony/sms_mms/services/sms/gsm/
H A 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/hiviewdfx/hiview_lite/
H A Dhiview_util.h56 uint8 month; member
/base/global/i18n_lite/frameworks/i18n/src/
H A 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/telephony/core_service/services/network_search/src/
H A Dnitz_update.cpp137 StrToInt(strsRet[1], networkTime.month); in NitzParse()
189 if (networkTime.year < static_cast<int32_t>(CST_YEAR) || networkTime.month < 1) { in ProcessTime()
203 t.tm_mon = networkTime.month - 1; in ProcessTime()
/base/hiviewdfx/hilog_lite/frameworks/mini/
H A Dhiview_output_log.c402 uint32 month, day, hour, min, sec; in LogCommonFmt() local
408 month = nowTime.tm_mon + 1; in LogCommonFmt()
418 month, day, hour, min, sec, commonContentPtr->milli, commonContentPtr->task, g_logLevelInfo[level], in LogCommonFmt()

Completed in 16 milliseconds

12