/base/telephony/data_storage/common/include/ |
D | time_util.h | 24 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/time/time_service/framework/js/napi/system_time/test/unittest/src/ |
D | SystemTimeJsunit.test.js | 553 let date = new Date(); 555 await systemTime.setDate(date).then(() => { 557 expect(date.toDateString() === data.toDateString()).assertTrue(); 582 let date = new Date(2022, 1, 1); 584 await systemTime.setDate(date).then(() => { 586 expect(date.toDateString() === data.toDateString()).assertTrue(); 611 let date = new Date(2022, 1, 15); 613 await systemTime.setDate(date).then(() => { 615 expect(date.toDateString() === data.toDateString()).assertTrue(); 640 let date = new Date(2022, 1, 31); [all …]
|
/base/time/time_service/framework/js/napi/system_date_time/test/unittest/src/ |
D | SystemDateTimeJsunit.test.js | 553 let date = new Date(); 555 systemDateTime.setDate(date).then(() => { 557 expect(date.toDateString() === data.toDateString()).assertTrue(); 582 let date = new Date(2022, 1, 1); 584 systemDateTime.setDate(date).then(() => { 586 expect(date.toDateString() === data.toDateString()).assertTrue(); 611 let date = new Date(2022, 1, 15); 613 systemDateTime.setDate(date).then(() => { 615 expect(date.toDateString() === data.toDateString()).assertTrue(); 640 let date = new Date(2022, 1, 31); [all …]
|
/base/global/i18n/ |
D | README.md | 11 … 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/global/i18n/frameworks/intl/test/fuzztest/timezone_fuzzer/ |
D | timezone_fuzzer.cpp | 31 double date = static_cast<double>(data[0]); in DoSomethingInterestingWithMyAPI() local 33 timezone.GetOffset(date); in DoSomethingInterestingWithMyAPI()
|
/base/hiviewdfx/hiview/adapter/utility/platform/linux/ |
D | time_util.cpp | 63 char date[MAX_TIME_BUFF] = {0}; in TimestampFormatToDate() local 66 strftime(date, MAX_TIME_BUFF, format.c_str(), &result); in TimestampFormatToDate() 68 return std::string(date); in TimestampFormatToDate()
|
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/include/ |
D | app_usage_event_factory.h | 26 …nfo(const std::string& package, const std::string& version, int64_t usage, const std::string& date) in AppUsageInfo() 27 : package_(package), version_(version), usage_(usage), date_(date) in AppUsageInfo()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
D | napi_disturb_mode.cpp | 50 asynccallbackinfo->params.userId, asynccallbackinfo->params.date); in NapiSetDoNotDisturbDate() 53 asynccallbackinfo->params.date); in NapiSetDoNotDisturbDate() 57 … asynccallbackinfo->params.date.Dump().c_str(), asynccallbackinfo->info.errorCode, in NapiSetDoNotDisturbDate() 109 if (!Common::SetDoNotDisturbDate(env, asynccallbackinfo->date, result)) { in AsyncCompleteCallbackNapiGetDoNotDisturbDate() 153 asynccallbackinfo->params.userId, asynccallbackinfo->date); in NapiGetDoNotDisturbDate() 156 asynccallbackinfo->date); in NapiGetDoNotDisturbDate() 160 asynccallbackinfo->info.errorCode, asynccallbackinfo->date.Dump().c_str(), in NapiGetDoNotDisturbDate()
|
/base/telephony/sms_mms/frameworks/js/napi/include/ |
D | napi_mms.h | 91 int64_t date; member 128 int64_t date; member 151 int64_t date; member 162 int64_t date; member 171 int64_t date; member
|
/base/global/i18n/frameworks/intl/include/ |
D | i18n_calendar.h | 51 void Set(int32_t year, int32_t month, int32_t date); 60 bool IsWeekend(int64_t date, UErrorCode &status);
|
/base/notification/distributed_notification_service/frameworks/js/napi/include/ |
D | disturb_mode.h | 25 NotificationDoNotDisturbDate date; member 48 NotificationDoNotDisturbDate date; member
|
/base/notification/distributed_notification_service/test/fuzztest/anssubscriberproxy_fuzzer/ |
D | anssubscriberproxy_fuzzer.cpp | 52 …sptr<Notification::NotificationDoNotDisturbDate> date = new Notification::NotificationDoNotDisturb… in DoSomethingInterestingWithMyAPI() local 53 ansSubscriberProxy.OnDoNotDisturbDateChange(date); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
D | disturb_mode.cpp | 49 params.date.SetDoNotDisturbType(outType); in GetDoNotDisturbDate() 66 params.date.SetBeginDate(int64_t(begin)); in GetDoNotDisturbDate() 83 params.date.SetEndDate(int64_t(end)); in GetDoNotDisturbDate() 168 asynccallbackinfo->params.userId, asynccallbackinfo->params.date); in SetDoNotDisturbDate() 171 asynccallbackinfo->params.date); in SetDoNotDisturbDate() 175 … asynccallbackinfo->params.date.Dump().c_str(), asynccallbackinfo->info.errorCode, in SetDoNotDisturbDate() 225 if (!Common::SetDoNotDisturbDate(env, asynccallbackinfo->date, result)) { in AsyncCompleteCallbackGetDoNotDisturbDate() 307 asynccallbackinfo->params.userId, asynccallbackinfo->date); in GetDoNotDisturbDate() 310 asynccallbackinfo->date); in GetDoNotDisturbDate() 314 asynccallbackinfo->info.errorCode, asynccallbackinfo->date.Dump().c_str(), in GetDoNotDisturbDate()
|
/base/hiviewdfx/hiview/adapter/utility/platform/ohos/ |
D | time_util.cpp | 64 char date[MAX_TIME_BUFF] = {0}; in TimestampFormatToDate() local 67 strftime(date, MAX_TIME_BUFF, format.c_str(), &result); in TimestampFormatToDate() 69 return std::string(date); in TimestampFormatToDate()
|
/base/telephony/sms_mms/interfaces/kits/js/ |
D | @ohos.telephony.sms.d.ts | 394 date?: number; property 452 date: number; property 482 date: number; property 497 date: number; property 511 date?: number; property
|
/base/notification/distributed_notification_service/test/fuzztest/anssubscriberstub_fuzzer/ |
D | anssubscriberstub_fuzzer.cpp | 66 …sptr<Notification::NotificationDoNotDisturbDate> date = new Notification::NotificationDoNotDisturb… in DoSomethingInterestingWithMyAPI() local 67 ansSubscriberStub.OnDoNotDisturbDateChange(date); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
D | notification_subscriber_manager_test.cpp | 46 … void OnDoNotDisturbDateChange(const std::shared_ptr<NotificationDoNotDisturbDate> &date) override in OnDoNotDisturbDateChange() argument 120 sptr<NotificationDoNotDisturbDate> date = variable 122 notificationSubscriberManager_->NotifyDoNotDisturbDateChanged(date);
|
/base/usb/usb_manager/test/native/js_unittest/ |
D | DateAndTimeUtil.js | 65 concatDate(year, month, date) { argument 66 return year + this.year + month + this.month + date + this.day;
|
/base/notification/distributed_notification_service/frameworks/core/src/ |
D | ans_subscriber_stub.cpp | 176 sptr<NotificationDoNotDisturbDate> date = data.ReadParcelable<NotificationDoNotDisturbDate>(); in HandleOnDoNotDisturbDateChange() local 177 if (!date) { in HandleOnDoNotDisturbDateChange() 181 OnDoNotDisturbDateChange(date); in HandleOnDoNotDisturbDateChange() 216 void AnsSubscriberStub::OnDoNotDisturbDateChange(const sptr<NotificationDoNotDisturbDate> &date) in OnDoNotDisturbDateChange() argument
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
D | notification_subscriber.h | 88 …virtual void OnDoNotDisturbDateChange(const std::shared_ptr<NotificationDoNotDisturbDate> &date) =… 130 void OnDoNotDisturbDateChange(const sptr<NotificationDoNotDisturbDate> &date) override;
|
/base/msdp/device_status/interfaces/innerkits/include/ |
D | idevicestatus_storage.h | 30 std::string date; member
|
/base/global/i18n/frameworks/intl/src/ |
D | i18n_calendar.cpp | 194 void I18nCalendar::Set(int32_t year, int32_t month, int32_t date) in Set() argument 197 calendar_->set(year, month, date); in Set() 254 bool I18nCalendar::IsWeekend(int64_t date, UErrorCode &status) in IsWeekend() argument 257 return calendar_->isWeekend(date, status); in IsWeekend()
|
/base/security/crypto_framework/plugin/openssl_plugin/certificate/src/ |
D | x509_certificate_openssl.c | 232 static HcfResult CheckValidityWithDateX509Openssl(HcfX509CertificateSpi *self, const char *date) in CheckValidityWithDateX509Openssl() argument 234 if ((self == NULL) || (date == NULL)) { in CheckValidityWithDateX509Openssl() 249 if (ASN1_TIME_set_string(asn1InputDate, date) != HCF_OPENSSL_SUCCESS) { in CheckValidityWithDateX509Openssl() 398 const char *date = (const char *)(notBeforeDate->data); in GetNotBeforeX509Openssl() local 399 if ((date == NULL) || (strlen(date) > HCF_MAX_STR_LEN)) { in GetNotBeforeX509Openssl() 403 uint32_t length = strlen(date) + 1; in GetNotBeforeX509Openssl() 404 return DeepCopyDataToOut(date, length, outDate); in GetNotBeforeX509Openssl() 430 const char *date = (const char *)(notAfterDate->data); in GetNotAfterX509Openssl() local 431 if ((date == NULL) || (strlen(date) > HCF_MAX_STR_LEN)) { in GetNotAfterX509Openssl() 435 uint32_t length = strlen(date) + 1; in GetNotAfterX509Openssl() [all …]
|
/base/security/crypto_framework/test/unittest/src/ |
D | crypto_x509_certificate_test.cpp | 437 const char *date = "231018162433Z"; variable 439 HcfResult ret = g_x509CertObj->checkValidityWithDate(g_x509CertObj, date); 446 const char *date = "20231018162433Z"; variable 448 HcfResult ret = g_x509CertObj->checkValidityWithDate(g_x509CertObj, date); 455 const char *date = "20991018162433Z"; variable 457 HcfResult ret = g_x509CertObj->checkValidityWithDate(g_x509CertObj, date); 464 const char *date = "20191018162433Z"; variable 466 HcfResult ret = g_x509CertObj->checkValidityWithDate(g_x509CertObj, date); 473 const char *date = "20191018"; variable 475 HcfResult ret = g_x509CertObj->checkValidityWithDate(g_x509CertObj, date); [all …]
|
/base/notification/distributed_notification_service/services/ans/include/ |
D | notification_subscriber_manager.h | 91 void NotifyDoNotDisturbDateChanged(const sptr<NotificationDoNotDisturbDate> &date); 122 void NotifyDoNotDisturbDateChangedInner(const sptr<NotificationDoNotDisturbDate> &date);
|