Home
last modified time | relevance | path

Searched full:date (Results 1 – 25 of 420) sorted by relevance

12345678910>>...17

/base/telephony/telephony_data/common/include/
Dtime_util.h24 void FormatDate(std::string &date, const tm *ltm) in FormatDate() argument
35 date.append(std::to_string(year)); in FormatDate()
36 date.append("-"); in FormatDate()
38 date.append("0"); in FormatDate()
40 date.append(std::to_string(month)); in FormatDate()
41 date.append("-"); in FormatDate()
43 date.append("0"); in FormatDate()
45 date.append(std::to_string(day)); in FormatDate()
46 date.append(" "); in FormatDate()
48 date.append("0"); in FormatDate()
[all …]
/base/notification/distributed_notification_service/services/ans/src/disturb_manager/
Dget_do_not_disturb_date.cpp31 sptr<NotificationDoNotDisturbDate> date = nullptr; in HandleGetDoNotDisturbDate() local
33 ErrCode result = GetDoNotDisturbDateSyncQueue(date); in HandleGetDoNotDisturbDate()
40 if (!reply.WriteParcelable(date)) { in HandleGetDoNotDisturbDate()
41 ANS_LOGE("[HandleSetDoNotDisturbDate] fail: write date failed."); in HandleGetDoNotDisturbDate()
57 sptr<NotificationDoNotDisturbDate> date = nullptr; in HandleGetDoNotDisturbDateByUser() local
58 ErrCode result = GetDoNotDisturbDateByUserSyncQueue(userId, date); in HandleGetDoNotDisturbDateByUser()
65 if (!reply.WriteParcelable(date)) { in HandleGetDoNotDisturbDateByUser()
66 ANS_LOGE("[HandleGetDoNotDisturbDateByUser] fail: write date failed."); in HandleGetDoNotDisturbDateByUser()
74 ErrCode DisturbManager::GetDoNotDisturbDateSyncQueue(sptr<NotificationDoNotDisturbDate> &date) in GetDoNotDisturbDateSyncQueue() argument
84 result = GetDoNotDisturbDateByUserInner(userId, date); in GetDoNotDisturbDateSyncQueue()
[all …]
Dset_do_not_disturb_date.cpp34 sptr<NotificationDoNotDisturbDate> date = data.ReadParcelable<NotificationDoNotDisturbDate>(); in HandleSetDoNotDisturbDate() local
35 if (date == nullptr) { in HandleSetDoNotDisturbDate()
36 ANS_LOGE("[HandleSetDoNotDisturbDate] fail: read date failed."); in HandleSetDoNotDisturbDate()
40 ErrCode result = SetDoNotDisturbDate(date); in HandleSetDoNotDisturbDate()
56 sptr<NotificationDoNotDisturbDate> date = data.ReadParcelable<NotificationDoNotDisturbDate>(); in HandleSetDoNotDisturbDateByUser() local
57 if (date == nullptr) { in HandleSetDoNotDisturbDateByUser()
58 ANS_LOGE("[HandleSetDoNotDisturbDateByUser] fail: read date failed."); in HandleSetDoNotDisturbDateByUser()
62 ErrCode result = SetDoNotDisturbDateByUserSyncQueue(userId, date); in HandleSetDoNotDisturbDateByUser()
71 ErrCode DisturbManager::SetDoNotDisturbDate(const sptr<NotificationDoNotDisturbDate> &date) in SetDoNotDisturbDate() argument
81 return SetDoNotDisturbDateByUserSyncQueue(userId, date); in SetDoNotDisturbDate()
[all …]
/base/global/i18n/
DREADME.md11 … of internationalization \(i18n\) APIs for implementing functions such as date and time formatting.
34 Change the date and time formats \(such as the sequence of year, month, and day, month and week nam…
37 const date = new Date(2021, 11, 17, 3, 24, 0); // Create a Date object containing date and time inf…
39 console.log(fmt.format(date)); // Format the date and time by using the DateTimeFormat instance.
/base/notification/distributed_notification_service/services/ans/test/unittest/disturb_manager/
Ddisturb_manager_test.cpp93 sptr<NotificationDoNotDisturbDate> date = nullptr; variable
94 …ASSERT_EQ(disturbManager_->GetDoNotDisturbDateByUserSyncQueue(userId, date), ERR_ANS_INVALID_PARAM…
95 …ASSERT_EQ(disturbManager_->SetDoNotDisturbDateByUserSyncQueue(userId, date), ERR_ANS_INVALID_PARAM…
135 sptr<NotificationDoNotDisturbDate> date = nullptr; variable
139 ASSERT_EQ(disturbManager_->SetDoNotDisturbDate(date), ERR_ANS_GET_ACTIVE_USER_FAILED);
149 sptr<NotificationDoNotDisturbDate> date = nullptr; variable
153 ASSERT_EQ(disturbManager_->GetDoNotDisturbDateSyncQueue(date), ERR_ANS_GET_ACTIVE_USER_FAILED);
164 sptr<NotificationDoNotDisturbProfile> date = nullptr; variable
165 std::vector<sptr<NotificationDoNotDisturbProfile>> profiles = { date };
179 sptr<NotificationDoNotDisturbProfile> date = nullptr; variable
[all …]
/base/notification/distributed_notification_service/frameworks/core/src/manager/
Dans_manager_proxy_disturb.cpp30 ErrCode AnsManagerProxy::SetDoNotDisturbDate(const sptr<NotificationDoNotDisturbDate> &date) in SetDoNotDisturbDate() argument
32 if (date == nullptr) { in SetDoNotDisturbDate()
33 ANS_LOGE("[SetDoNotDisturbDate] fail: date is empty."); in SetDoNotDisturbDate()
43 if (!data.WriteParcelable(date)) { in SetDoNotDisturbDate()
44 ANS_LOGE("[SetDoNotDisturbDate] fail: write date failed"); in SetDoNotDisturbDate()
64 ErrCode AnsManagerProxy::GetDoNotDisturbDate(sptr<NotificationDoNotDisturbDate> &date) in GetDoNotDisturbDate() argument
86 date = reply.ReadParcelable<NotificationDoNotDisturbDate>(); in GetDoNotDisturbDate()
87 if (date == nullptr) { in GetDoNotDisturbDate()
88 ANS_LOGE("[GetDoNotDisturbDate] fail: read date error."); in GetDoNotDisturbDate()
192 …erProxy::SetDoNotDisturbDate(const int32_t &userId, const sptr<NotificationDoNotDisturbDate> &date) in SetDoNotDisturbDate() argument
[all …]
/base/global/i18n/interfaces/cj/src/
Di18n_calendar_impl.cpp41 void CCalendar::Set(int32_t year, int32_t month, int32_t date) in Set() argument
43 calendar_->Set(year, month, date); in Set()
81 int32_t CCalendar::CompareDays(UDate date) in CompareDays() argument
83 return calendar_->CompareDays(date); in CompareDays()
91 bool CCalendar::IsWeekend(int64_t date, UErrorCode &status) in IsWeekend() argument
93 return calendar_->IsWeekend(date, status); in IsWeekend()
Di18n_holiday_ffi.cpp40 bool FfiOHOSHolidayManagerIsHoliday(int64_t id, CDate date) in FfiOHOSHolidayManagerIsHoliday() argument
47 if (date.isNull) { in FfiOHOSHolidayManagerIsHoliday()
50 return instance->isHoliday(date.year, date.month, date.day); in FfiOHOSHolidayManagerIsHoliday()
Di18n_calendar_ffi.cpp34 { "date", UCAL_DATE },
55 "year", "month", "date", "hour", "minute", "second", "millisecond",
245 bool FfiOHOSCalendarIsWeekend(int64_t id, CDate date) in FfiOHOSCalendarIsWeekend() argument
252 // -1 indicates that the date is not provided in FfiOHOSCalendarIsWeekend()
253 if (date.isNull) { in FfiOHOSCalendarIsWeekend()
257 return instance->IsWeekend(date.icuUdate, error); in FfiOHOSCalendarIsWeekend()
285 int32_t FfiOHOSCalendarCompareDays(int64_t id, CDate date) in FfiOHOSCalendarCompareDays() argument
292 return instance->CompareDays(date.icuUdate); in FfiOHOSCalendarCompareDays()
/base/notification/distributed_notification_service/services/ans/include/disturb_manager/
Ddisturb_manager.h59 ErrCode SetDoNotDisturbDate(const sptr<NotificationDoNotDisturbDate> &date);
62 ErrCode GetDoNotDisturbDateSyncQueue(sptr<NotificationDoNotDisturbDate> &date);
63 …etDoNotDisturbDateByUserSyncQueue(const int32_t &userId, sptr<NotificationDoNotDisturbDate> &date);
64 …tDisturbDateByUserSyncQueue(const int32_t &userId, const sptr<NotificationDoNotDisturbDate> &date);
67 …DoNotDisturbDateByUserInner(const int32_t &userId, const sptr<NotificationDoNotDisturbDate> &date);
68 …de GetDoNotDisturbDateByUserInner(const int32_t &userId, sptr<NotificationDoNotDisturbDate> &date);
/base/hiviewdfx/hiview/framework/native/unified_collection/trace_manager/src/
Dtrace_flow_controller.cpp115 std::string date = TimeUtil::TimestampFormatToDate(happenTimeInSecond, "%Y%m%d"); in HasCallOnceToday() local
120 auto result = std::from_chars(date.c_str(), date.c_str() + date.size(), dateNum); in HasCallOnceToday()
122 HIVIEW_LOGW("convert error, dateStr: %{public}s", date.c_str()); in HasCallOnceToday()
136 std::string date = TimeUtil::TimestampFormatToDate(happenTimeInSecond, "%Y%m%d"); in RecordCaller() local
138 auto result = std::from_chars(date.c_str(), date.c_str() + date.size(), dateNum); in RecordCaller()
140 HIVIEW_LOGW("convert error, dateStr: %{public}s", date.c_str()); in RecordCaller()
/base/usb/usb_manager/test/native/js_unittest/
DDateAndTimeUtil.js19 * date package tool class
30 const datetime = new Date();
41 const datetime = new Date();
61 * concat date
65 concatDate(year, month, date) { argument
66 return year + this.year + month + this.month + date + this.day;
/base/notification/distributed_notification_service/services/reminder/include/
Dreminder_agent_service.h71 * @brief Add exclude date for reminder.
74 * @param date Identifies the exclude date.
77 ErrCode AddExcludeDate(const int32_t reminderId, const int64_t date) override;
80 * @brief Clear exclude date for reminder.
88 * @brief Get exclude date for reminder.
/base/global/i18n/frameworks/intl/test/unittest/mock/src/
Dgenerate_ics_file.cpp45 "DTSTART;VALUE=DATE:20220625\r\n", in GenerateFile()
46 "DTEND;VALUE=DATE:20220625\r\n", in GenerateFile()
52 "DTSTART;VALUE=DATE:20220626\r\n", in GenerateFile()
53 "DTEND;VALUE=DATE:20220626\r\n", in GenerateFile()
59 "DTSTART;VALUE=DATE:20220625\r\n", in GenerateFile()
60 "DTEND;VALUE=DATE:20220625\r\n", in GenerateFile()
/base/notification/distributed_notification_service/interfaces/inner_api/
Dreminder_request_client.h64 * @brief Add exclude date for reminder
67 * @param date exclude date
70 ErrCode AddExcludeDate(const int32_t reminderId, const int64_t date);
73 * @brief Clear exclude date for reminder
81 * @brief Get exclude date for reminder
Dreminder_helper.h102 * @brief Add exclude date for reminder
105 * @param date exclude date
108 static ErrCode AddExcludeDate(const int32_t reminderId, const int64_t date);
111 * @brief Clear exclude date for reminder
119 * @brief Get exclude date for reminder
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Ddisturb_mode.cpp34 // argv[0]: date:type in GetDoNotDisturbDate()
57 params.date.SetDoNotDisturbType(outType); in GetDoNotDisturbDate()
59 // argv[0]: date:begin in GetDoNotDisturbDate()
71 ANS_LOGE("Wrong argument type. Date expected."); in GetDoNotDisturbDate()
72 std::string msg = "Incorrect parameter types.The type of param must be date."; in GetDoNotDisturbDate()
77 params.date.SetBeginDate(int64_t(begin)); in GetDoNotDisturbDate()
79 // argv[0]: date:end in GetDoNotDisturbDate()
91 ANS_LOGE("Wrong argument type. Date expected."); in GetDoNotDisturbDate()
92 std::string msg = "Incorrect parameter types.The type of param must be date."; in GetDoNotDisturbDate()
97 params.date.SetEndDate(int64_t(end)); in GetDoNotDisturbDate()
[all …]
/base/global/i18n/interfaces/js/kits/src/
Dsimple_date_time_format_addon.cpp144 ErrorUtil::NapiThrow(env, I18N_NOT_FOUND, "date", "", true); in Format()
149 HILOG_ERROR_I18N("SimpleDateTimeFormatAddon::Format: get date time failed."); in Format()
251 … ErrorUtil::NapiThrow(env, I18N_NOT_VALID, "skeleton", "a valid date time format skeleton", true); in SimpleDateTimeFormatConstructor()
254 … ErrorUtil::NapiThrow(env, I18N_NOT_VALID, "pattern", "a valid date time format pattern", true); in SimpleDateTimeFormatConstructor()
264 bool SimpleDateTimeFormatAddon::GetDateTime(napi_env env, napi_value date, int64_t& milliseconds) in GetDateTime() argument
267 napi_status status = napi_is_date(env, date, &isDate); in GetDateTime()
272 ErrorUtil::NapiThrow(env, I18N_NOT_FOUND, "date", "Date", true); in GetDateTime()
277 status = napi_get_named_property(env, date, GET_TIME_NAME.c_str(), &funcGetTime); in GetDateTime()
284 status = napi_call_function(env, date, funcGetTime, 0, nullptr, &value); in GetDateTime()
/base/global/i18n/interfaces/cj/include/
Di18n_calendar_impl.h34 void Set(int32_t year, int32_t month, int32_t date);
45 bool IsWeekend(int64_t date, UErrorCode &status);
48 int32_t CompareDays(UDate date);
/base/time/time_service/
DREADME_zh.md31 ….com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-system-date-time.md)
48 | setDate(date: Date, callback: AsyncCallback<boolean>): void; | 设置系统时间(Date格式),Promise方式。 …
49 | setDate(date: Date): Promise<boolean> | 设置系统时间(Date格式),callback方式。 …
50 | getDate(callback: AsyncCallback<Date>): void | 获取当前系统日期,Promise方式。 |
51 | getDate(): Promise<Date> | 获取当前系统日期,callback方式。 |
DREADME.md36 | setDate(date: Date, callback: AsyncCallback<boolean>): void; | Set the system time (Date format),…
37 | setDate(date: Date): Promise<boolean> | Set system time (Date format), cal…
/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/
Ddisallow_modify_datetime_plugin_test.cpp48 // want to disallow to modify date time.
51 // origin policy is allow to modify date time.
57 // current policy is disallow to modify date time.
/base/global/i18n/frameworks/intl/include/
Di18n_calendar.h52 void Set(int32_t year, int32_t month, int32_t date);
63 bool IsWeekend(int64_t date, UErrorCode &status);
66 int32_t CompareDays(UDate date);
/base/time/time_service/test/unittest/js_test/permission/
DSystemTimeGet.test.js35 const nowTime = new Date().getTime();
53 const nowTime = new Date().getTime();
74 const nowTime = new Date().getTime();
92 const nowTime = new Date().getTime();
113 const nowTime = new Date().getTime();
132 const nowTime = new Date().getTime();
374 let date = new Date(2022, 1, 1);
375 await systemTime.setDate(date);
377 …expect(currentDate instanceof Date && currentDate.toDateString() === date.toDateString()).assertTr…
392 let date = new Date(2022, 1, 1);
[all …]
/base/telephony/sms_mms/frameworks/js/napi/include/
Dnapi_mms.h80 int64_t date = 0; member
117 int64_t date = 0; member
140 int64_t date = 0; member
151 int64_t date = 0; member
160 int64_t date = 0; member

12345678910>>...17