未验证 提交 d34bda66 编写于 作者: O openharmony_ci 提交者: Gitee

!2959 2539 处理完成:miscservices syscap修改

Merge pull request !2959 from ester.zhou/TR-2539
......@@ -20,7 +20,7 @@ Sets the system time. This API uses an asynchronous callback to return the resul
**Required permissions**: ohos.permission.SET_TIME
**System capability**: SystemCapability.Miscservices.Time
**System capability**: SystemCapability.MiscServices.Time
- **Parameters**
| Name| Type| Mandatory| Description|
......@@ -51,7 +51,7 @@ Sets the system time. This API uses a promise to return the result.
**Required permissions**: ohos.permission.SET_TIME
**System capability**: SystemCapability.Miscservices.Time
**System capability**: SystemCapability.MiscServices.Time
- **Parameters**
| Name| Type| Mandatory| Description|
......@@ -82,7 +82,7 @@ getCurrentTime(isNano?: boolean, callback: AsyncCallback<number>): void
Obtains the time elapsed since the Unix epoch. This API uses an asynchronous callback to return the result.
**System capability**: SystemCapability.Miscservices.Time
**System capability**: SystemCapability.MiscServices.Time
- **Parameters**
| Name| Type| Mandatory| Description|
......@@ -109,7 +109,7 @@ getCurrentTime(isNano?: boolean): Promise<number>
Obtains the time elapsed since the Unix epoch. This API uses a promise to return the result.
**System capability**: SystemCapability.Miscservices.Time
**System capability**: SystemCapability.MiscServices.Time
- **Parameters**
| Name| Type| Mandatory| Description|
......@@ -138,7 +138,7 @@ getRealActiveTime(isNano?: boolean, callback: AsyncCallback<number>): void
Obtains the time elapsed since system start, excluding the deep sleep time. This API uses an asynchronous callback to return the result.
**System capability**: SystemCapability.Miscservices.Time
**System capability**: SystemCapability.MiscServices.Time
- **Parameters**
| Name| Type| Mandatory| Description|
......@@ -165,7 +165,7 @@ getRealActiveTime(isNano?: boolean): Promise<number>
Obtains the time elapsed since system start, excluding the deep sleep time. This API uses a promise to return the result.
**System capability**: SystemCapability.Miscservices.Time
**System capability**: SystemCapability.MiscServices.Time
- **Parameters**
| Name| Type| Mandatory| Description|
......@@ -194,7 +194,7 @@ getRealTime(callback: AsyncCallback<number>): void
Obtains the time elapsed since system start, including the deep sleep time. This API uses an asynchronous callback to return the result.
**System capability**: SystemCapability.Miscservices.Time
**System capability**: SystemCapability.MiscServices.Time
- **Parameters**
| Name| Type| Mandatory| Description|
......@@ -221,7 +221,7 @@ getRealTime(): Promise<number>
Obtains the time elapsed since system start, including the deep sleep time. This API uses a promise to return the result.
**System capability**: SystemCapability.Miscservices.Time
**System capability**: SystemCapability.MiscServices.Time
- **Parameters**
| Name| Type| Mandatory| Description|
......@@ -252,7 +252,7 @@ Sets the system date. This API uses an asynchronous callback to return the resul
**Required permissions**: ohos.permission.SET_TIME
**System capability**: SystemCapability.Miscservices.Time
**System capability**: SystemCapability.MiscServices.Time
- **Parameters**
| Name| Type| Mandatory| Description|
......@@ -282,7 +282,7 @@ Sets the system date. This API uses a promise to return the result.
**Required permissions**: ohos.permission.SET_TIME
**System capability**: SystemCapability.Miscservices.Time
**System capability**: SystemCapability.MiscServices.Time
- **Parameters**
| Name| Type| Mandatory| Description|
......@@ -312,7 +312,7 @@ getDate(callback: AsyncCallback<Date>): void
Obtains the current system date. This API uses an asynchronous callback to return the result.
**System capability**: SystemCapability.Miscservices.Time
**System capability**: SystemCapability.MiscServices.Time
- **Parameters**
| Name| Type| Mandatory| Description|
......@@ -338,7 +338,7 @@ getDate(): Promise<Date>
Obtains the current system date. This API uses a promise to return the result.
**System capability**: SystemCapability.Miscservices.Time
**System capability**: SystemCapability.MiscServices.Time
- Return value
| Type| Description|
......@@ -364,7 +364,7 @@ Sets the system time zone. This API uses an asynchronous callback to return the
**Required permissions**: ohos.permission.SET_TIME_ZONE
**System capability**: SystemCapability.Miscservices.Time
**System capability**: SystemCapability.MiscServices.Time
- **Parameters**
| Name| Type| Mandatory| Description|
......@@ -393,7 +393,7 @@ Sets the system time zone. This API uses a promise to return the result.
**Required permissions**: ohos.permission.SET_TIME_ZONE
**System capability**: SystemCapability.Miscservices.Time
**System capability**: SystemCapability.MiscServices.Time
- **Parameters**
| Name| Type| Mandatory| Description|
......@@ -422,7 +422,7 @@ getTimezone(callback: AsyncCallback<string>): void
Obtains the system time zone. This API uses an asynchronous callback to return the result.
**System capability**: SystemCapability.Miscservices.Time
**System capability**: SystemCapability.MiscServices.Time
- **Parameters**
| Name| Type| Mandatory| Description|
......@@ -448,7 +448,7 @@ getTimezone(): Promise<string>
Obtains the system time zone. This API uses a promise to return the result.
**System capability**: SystemCapability.Miscservices.Time
**System capability**: SystemCapability.MiscServices.Time
- Return value
| Type| Description|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册