Home
last modified time | relevance | path

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

12345678910>>...16

/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/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/security/security_guard/services/data_collect/store/src/
Daudit_event_mem_rdb_helper.cpp109 int AuditEventMemRdbHelper::QueryEventFromMemByDate(std::vector<SecEvent> &events, std::string date) in QueryEventFromMemByDate() argument
112 predicates.LessThan(DATE, date); in QueryEventFromMemByDate()
113 std::vector<std::string> columns { EVENT_ID, VERSION, DATE, CONTENT, USER_ID, DEVICE_ID }; in QueryEventFromMemByDate()
128 resultSet->GetString(table.dateIndex, event.date); in QueryEventFromMemByDate()
151 int AuditEventMemRdbHelper::DeleteFlushDataFromMem(std::string date) in DeleteFlushDataFromMem() argument
154 predicates.LessThan(DATE, date); in DeleteFlushDataFromMem()
163 int AuditEventMemRdbHelper::DeleteExpiredDataFromMain(std::string date) in DeleteExpiredDataFromMain() argument
167 SecurityGuardUtils::StrToI64(date, time); in DeleteExpiredDataFromMain()
169 predicateDel.LessThan(DATE, std::to_string(time)); in DeleteExpiredDataFromMain()
182 std::string date = SecurityGuardUtils::GetDate(); in FlushAllEvent() local
[all …]
Ddatabase_helper.cpp61 std::vector<std::string> columns { EVENT_ID, VERSION, DATE, CONTENT }; in QueryRecentEventByEventId()
79 resultSet->GetString(table.dateIndex, event.date); in QueryRecentEventByEventId()
147 predicates.GreaterThanOrEqualTo(DATE, beginTime); in QueryEventByEventIdAndDate()
151 predicates.LessThan(DATE, endTime); in QueryEventByEventIdAndDate()
251 std::vector<std::string> columns { EVENT_ID, VERSION, DATE, CONTENT, USER_ID, DEVICE_ID }; in QueryEventBase()
268 resultSet->GetString(table.dateIndex, event.date); in QueryEventBase()
306 if (columnName == DATE) { in GetResultSetTableInfo()
331 values.PutString(DATE, event.date); in SetValuesBucket()
347 table.append(DATE).append(" TEXT NOT NULL, "); in CreateTable()
/base/notification/distributed_notification_service/frameworks/core/src/
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 …]
Dans_manager_proxy_reminder.cpp162 ErrCode AnsManagerProxy::AddExcludeDate(const int32_t reminderId, const uint64_t date) in AddExcludeDate() argument
174 if (!data.WriteUint64(date)) { in AddExcludeDate()
175 ANSR_LOGE("[AddExcludeDate] fail: write exclude date failed"); in AddExcludeDate()
242 ANSR_LOGE("[GetExcludeDates] fail: read exclude date count failed."); in GetExcludeDates()
248 uint64_t date = 0; in GetExcludeDates() local
249 if (!reply.ReadUint64(date)) { in GetExcludeDates()
250 ANSR_LOGE("[GetExcludeDates] fail: read exclude date"); in GetExcludeDates()
253 dates.push_back(date); in GetExcludeDates()
/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/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.
70 // origin policy is disallow to modify date time.
80 // get policy is disallow to modify date time.
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/utils/
Dtrace_flow_controller.cpp102 // date changes in NeedDump()
191 std::string date = TimeUtil::TimestampFormatToDate(happenTimeInSecond, "%Y%m%d"); in HasCallOnceToday() local
196 auto result = std::from_chars(date.c_str(), date.c_str() + date.size(), dateNum); in HasCallOnceToday()
198 HIVIEW_LOGW("convert error, dateStr: %{public}s", date.c_str()); in HasCallOnceToday()
208 std::string date = TimeUtil::TimestampFormatToDate(happenTimeInSecond, "%Y%m%d"); in RecordCaller() local
210 auto result = std::from_chars(date.c_str(), date.c_str() + date.size(), dateNum); in RecordCaller()
212 HIVIEW_LOGW("convert error, dateStr: %{public}s", date.c_str()); in RecordCaller()
/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/security/security_guard/services/data_collect/store/include/
Daudit_event_mem_rdb_helper.h41 int QueryEventFromMemByDate(std::vector<SecEvent> &events, std::string date);
43 int DeleteFlushDataFromMem(std::string date);
44 int DeleteExpiredDataFromMain(std::string date);
/base/notification/distributed_notification_service/interfaces/inner_api/
Dreminder_helper.h101 * @brief Add exclude date for reminder
104 * @param date exclude date
107 static ErrCode AddExcludeDate(const int32_t reminderId, const uint64_t date);
110 * @brief Clear exclude date for reminder
118 * @brief Get exclude date for reminder
Dnotification_subscriber.h77 * @brief Called when the Do Not Disturb date changes.
79 * @param date Indicates the current Do Not Disturb date.
81 …virtual void OnDoNotDisturbDateChange(const std::shared_ptr<NotificationDoNotDisturbDate> &date) =…
165 void OnDoNotDisturbDateChange(const sptr<NotificationDoNotDisturbDate> &date) override;
/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/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/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/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
/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 …]
DSystemDateTimeGet.test.js36 const nowTime = new Date().getTime();
55 const nowTime = new Date().getTime();
77 const nowTime = new Date().getTime();
96 const nowTime = new Date().getTime();
118 const nowTime = new Date().getTime();
138 const nowTime = new Date().getTime();
393 let date = new Date(2022, 1, 1);
394 await systemDateTime.setDate(date);
396 …expect(currentDate instanceof Date && currentDate.toDateString() === date.toDateString()).assertTr…
412 let date = new Date(2022, 1, 1);
[all …]
DSystemTimerNormal.test.js494 systemTimer.startTimer(timerId, new Date().getTime() + 1000).then(() => {
501 systemTimer.startTimer(timerId, new Date().getTime() + 1000).then(() => {
556 systemTimer.startTimer(timerId, new Date().getTime() + 1000, (err) => {
563 systemTimer.startTimer(timerId, new Date().getTime() + 2000, (err) => {
618 await systemTimer.startTimer(timerId, new Date().getTime() + 1000);
645 await systemTimer.startTimer(timerId, new Date().getTime() + 1000)
674 await systemTimer.startTimer(timerId, new Date().getTime() + 1000)
676 systemTimer.startTimer(timerId, new Date().getTime() + 1000).then(() => {
730 await systemTimer.startTimer(timerId, new Date().getTime() + 1000);
758 await systemTimer.startTimer(timerId, new Date().getTime() + 1000)
[all …]
/base/security/security_guard/services/config_manager/include/
Dmodel_analysis_define.h65 // date manager key
71 // event date key
74 constexpr const char* EVENT_DATA_DATE_KEY = "date";
/base/hiviewdfx/hiview/hisysevent/
Dhiviewdfx_ue.yaml21 DATE: {type: STRING, desc: usage date}
/base/security/security_guard/test/unittest/risk_collect/include/
Dmodel_analysis_define.h66 // date manager key
72 // event date key
75 const std::string EVENT_DATA_DATE_KEY = "date";
/base/security/security_guard/test/unittest/config_manager/include/
Dmodel_analysis_define.h66 // date manager key
72 // event date key
75 const std::string EVENT_DATA_DATE_KEY = "date";

12345678910>>...16