/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.10.2/ |
H A D | changelogs-time.md | 3 ## cl.time.1 setTime、setDate、setTimezone接口新增权限校验 7 - 使用setTime方法前需提前申请"ohos.permission.SET_TIME"权限。 15 - systemDateTime.setTime; 27 调用setTime、setDate、setTimezone接口时,需申请相应的权限才可正常使用。
|
/ohos5.0/base/time/time_service/test/unittest/js_test/permission/ |
H A D | SystemDateTimeSet.test.js | 41 systemDateTime.setTime(123235423411).then(() => { 63 systemDateTime.setTime(time, (err) => { 85 systemDateTime.setTime(time).then(() => { 107 systemDateTime.setTime(time, (err) => { 130 systemDateTime.setTime("time").then(() => { 156 systemDateTime.setTime("time", (err) => { 182 systemDateTime.setTime(-1).then(() => { 203 systemDateTime.setTime(-1, (err) => {
|
H A D | SystemTimeSet.test.js | 38 systemTime.setTime(123235423411).then(() => { 57 systemTime.setTime(time, (err) => { 76 systemTime.setTime(time).then(() => { 95 systemTime.setTime(time, (err) => { 116 systemTime.setTime("time").then(() => { 139 systemTime.setTime("time", (err) => { 164 systemTime.setTime(-1).then(() => { 187 systemTime.setTime(-1, (err) => {
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.10.2/ |
H A D | changelogs-time.md | 3 ## cl.time.1 Permission Verification Adding for setTime, setDate, and setTimezone 5 Added permission verification for the **setTime**, **setDate**, and **setTimezone** APIs for compli… 9 - To call the **setTime** API, the **ohos.permission.SET_TIME** permission is required. 17 - systemDateTime.setTime; 29 To call the **setTime**, **setDate**, and **setTimezone** APIs, an application must apply for the c…
|
/ohos5.0/base/time/time_service/ |
H A D | README.md | 34 | setTime(time : number) : Promise<boolean> | Set the system time (1970-01-01 to… 35 | setTime(time : number, callback : AsyncCallback<boolean>) : void | Set the system time (1970-01-0… 74 systemTime.setTime(time).then((value) => { 75 console.log(`success to systemTime.setTime: ${value}`); 77 console.error(`failed to systemTime.setTime because ${err.message}`) 82 systemTime.setTime(time, (err, value) => { 84 console.error(`failed to systemTime.setTime because ${err.message}`); 87 console.log(`success to systemTime.setTime: ${value}`);
|
H A D | README_zh.md | 37 | setTime(time : number) : Promise | 设置系统时间(1970-01-01至今毫秒数),Promise方式。… 38 | setTime(time : number, callback : AsyncCallback<boolean>) : void | 设置系统时间(1970-01-01至今毫秒数),callba… 92 systemDateTime.setTime(time).then(() => { 105 systemDateTime.setTime(time, (error) => {
|
/ohos5.0/docs/zh-cn/application-dev/internationalization/ |
H A D | i18n-calendar.md | 22 calendar.setTime(new Date(2022, 5, 13, 8, 0, 0)); 23 calendar.setTime(10540800000); 69 calendar.setTime(new Date(2023, 6, 25, 8, 0, 0));
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-basic-services-kit/ |
H A D | js-apis-system-date-time-sys.md | 26 ## systemDateTime.setTime 28 setTime(time : number, callback : AsyncCallback<void>) : void 63 systemDateTime.setTime(time, (error: BusinessError) => { 76 ## systemDateTime.setTime 78 setTime(time : number) : Promise<void> 118 systemDateTime.setTime(time).then(() => { 137 > 从API version 9开始支持,从API 10开始废弃。建议使用[systemDateTime.setTime](#systemdatetimesettime)替代。 190 > 从API version 9开始支持,从API 10开始废弃。建议使用[systemDateTime.setTime](#systemdatetimesettime)替代。
|
H A D | js-apis-system-time.md | 560 ## systemTime.setTime<sup>(deprecated)</sup> 562 setTime(time : number, callback : AsyncCallback<void>) : void 593 systemTime.setTime(time, (error: BusinessError) => { 606 ## systemTime.setTime<sup>(deprecated)</sup> 608 setTime(time : number) : Promise<void> 644 systemTime.setTime(time).then(() => {
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/innerkits/src/ |
H A D | paste_data.cpp | 385 void PasteData::SetTime(const std::string &setTime) in SetTime() argument 387 props_.setTime = setTime; in SetTime() 392 return props_.setTime; in GetTime() 609 bundleName(property.bundleName), setTime(property.setTime), screenStatus(property.screenStatus) in PasteDataProperty() 633 this->setTime = property.setTime; in operator =() 653 ret = Write(buffer, TAG_SETTIME, setTime) && ret; in Encode() 707 ret = ret && ReadValue(buffer, setTime, head); in DecodeTag() 731 expectedSize += TLVObject::Count(setTime); in Count()
|
/ohos5.0/base/time/time_service/test/unittest/js_test/nopermission/acl/ |
H A D | SystemTime.test.js | 34 systemTime.setTime(nowTime).then(() => { 56 systemTime.setTime(nowTime, (err) => {
|
H A D | SystemDateTime.test.js | 36 systemDateTime.setTime(nowTime).then(() => { 58 systemDateTime.setTime(nowTime, (err) => {
|
/ohos5.0/base/time/time_service/test/unittest/js_test/nopermission/systemapi/ |
H A D | SystemDateTime.test.js | 34 systemDateTime.setTime(nowTime).then(() => { 56 systemDateTime.setTime(nowTime, (err) => {
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | reminder_request_calendar.cpp | 238 struct tm setTime; in GetNextDay() local 239 setTime.tm_year = GetCTime(TimeTransferType::YEAR, settedYear); in GetNextDay() 240 setTime.tm_mon = GetCTime(TimeTransferType::MONTH, settedMonth); in GetNextDay() 241 setTime.tm_mday = static_cast<int>(i); in GetNextDay() 242 setTime.tm_hour = target.tm_hour; in GetNextDay() 243 setTime.tm_min = target.tm_min; in GetNextDay() 244 setTime.tm_sec = target.tm_sec; in GetNextDay() 245 setTime.tm_isdst = -1; in GetNextDay() 256 if (mktime(&nowTime) >= mktime(&setTime)) { in GetNextDay()
|
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/ |
H A D | js-apis-system-date-time-sys.md | 26 ## systemDateTime.setTime 28 setTime(time : number, callback : AsyncCallback<void>) : void 63 systemDateTime.setTime(time, (error: BusinessError) => { 76 ## systemDateTime.setTime 78 setTime(time : number) : Promise<void> 118 systemDateTime.setTime(time).then(() => { 137 … deprecated since API version 10. You are advised to use [systemDateTime.setTime](#systemdatetimes… 190 … deprecated since API version 10. You are advised to use [systemDateTime.setTime](#systemdatetimes…
|
/ohos5.0/docs/en/application-dev/internationalization/ |
H A D | i18n-calendar.md | 22 calendar.setTime(new Date(2022, 5, 13, 8, 0, 0)); 23 calendar.setTime(10540800000); 69 calendar.setTime(new Date(2023, 6, 25, 8, 0, 0));
|
/ohos5.0/base/time/time_service/services/ |
H A D | time_permission.h | 29 static const std::string setTime;
|
H A D | time_permission.cpp | 24 const std::string TimePermission::setTime = "ohos.permission.SET_TIME"; member in OHOS::MiscServices::TimePermission
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/v3.2-beta5/ |
H A D | changelogs-time.md | 292 应用中调用systemTime所有接口可参考下列代码进行异常捕获,以setTime接口为例,其他接口适配方法相同。 303 systemDateTime.setTime(time, (error) => { 326 systemDateTime.setTime(time).then(() => {
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.1/ |
H A D | changelogs-time.md | 292 应用中调用systemTime所有接口可参考下列代码进行异常捕获,以setTime接口为例,其他接口适配方法相同。 303 systemDateTime.setTime(time, (error) => { 326 systemDateTime.setTime(time).then(() => {
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/partial_update/ |
H A D | pu_synced_property_one_way.ts | 353 d.setTime((rawValue as Date).getTime()); 432 copy.setTime(obj.getTime());
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v3.2-Release/ |
H A D | js-apidiff-misc.md | 180 …llback: AsyncCallback\<void>): void;<br>新版本信息:10<br>代替接口: systemDateTime.setTime|@ohos.systemDateT… 181 …setDate(date: Date): Promise\<void>;<br>新版本信息:10<br>代替接口: systemDateTime.setTime|@ohos.systemDateT… 185 …systemTime;<br>方法or属性:function setTime(time: number): Promise\<void>;<br>旧版本信息:|类名:systemTime;<br>… 202 …法or属性:function setTime(time: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:202,401|类名:sy… 203 …eTime;<br>方法or属性:function setTime(time: number): Promise\<void>;<br>旧版本信息:202,401|类名:systemDateTim… 216 …r>方法or属性:function setTime(time: number, callback: AsyncCallback\<void>): void;<br>旧版本信息:|类名:system… 217 …DateTime;<br>方法or属性:function setTime(time: number): Promise\<void>;<br>旧版本信息:|类名:systemDateTime;<b… 222 …systemTime;<br>方法or属性:function setTime(time: number): Promise\<void>;<br>旧版本信息:|类名:systemTime;<br>…
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v4.0-beta2/ |
H A D | js-apidiff-misc.md | 23 …llback: AsyncCallback\<void>): void;<br>新版本信息:10<br>代替接口: systemDateTime.setTime|@ohos.systemDateT… 24 …setDate(date: Date): Promise\<void>;<br>新版本信息:10<br>代替接口: systemDateTime.setTime|@ohos.systemDateT…
|
/ohos5.0/docs/en/release-notes/changelogs/v3.2-beta5/ |
H A D | changelogs-time.md | 292 …en **systemTime** APIs are called in applications. In the examples, the **setTime** API is invoked. 303 systemDateTime.setTime(time, (error) => { 326 systemDateTime.setTime(time).then(() => {
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.10.1/ |
H A D | changelogs-time.md | 292 …en **systemTime** APIs are called in applications. In the examples, the **setTime** API is invoked. 303 systemDateTime.setTime(time, (error) => { 326 systemDateTime.setTime(time).then(() => {
|