Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
d34bda66
D
Docs
项目概览
OpenHarmony
/
Docs
1 年多 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
d34bda66
编写于
4月 02, 2022
作者:
O
openharmony_ci
提交者:
Gitee
4月 02, 2022
浏览文件
操作
浏览文件
下载
差异文件
!2959 2539 处理完成:miscservices syscap修改
Merge pull request !2959 from ester.zhou/TR-2539
上级
1af7425f
f86356a9
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
16 deletion
+16
-16
en/application-dev/reference/apis/js-apis-system-time.md
en/application-dev/reference/apis/js-apis-system-time.md
+16
-16
未找到文件。
en/application-dev/reference/apis/js-apis-system-time.md
浏览文件 @
d34bda66
...
@@ -20,7 +20,7 @@ Sets the system time. This API uses an asynchronous callback to return the resul
...
@@ -20,7 +20,7 @@ Sets the system time. This API uses an asynchronous callback to return the resul
**Required permissions**
: ohos.permission.SET_TIME
**Required permissions**
: ohos.permission.SET_TIME
**System capability**
: SystemCapability.Misc
s
ervices.Time
**System capability**
: SystemCapability.Misc
S
ervices.Time
-
**Parameters**
-
**Parameters**
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
...
@@ -51,7 +51,7 @@ Sets the system time. This API uses a promise to return the result.
...
@@ -51,7 +51,7 @@ Sets the system time. This API uses a promise to return the result.
**Required permissions**
: ohos.permission.SET_TIME
**Required permissions**
: ohos.permission.SET_TIME
**System capability**
: SystemCapability.Misc
s
ervices.Time
**System capability**
: SystemCapability.Misc
S
ervices.Time
-
**Parameters**
-
**Parameters**
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
...
@@ -82,7 +82,7 @@ getCurrentTime(isNano?: boolean, callback: AsyncCallback<number>): void
...
@@ -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.
Obtains the time elapsed since the Unix epoch. This API uses an asynchronous callback to return the result.
**System capability**
: SystemCapability.Misc
s
ervices.Time
**System capability**
: SystemCapability.Misc
S
ervices.Time
-
**Parameters**
-
**Parameters**
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
...
@@ -109,7 +109,7 @@ getCurrentTime(isNano?: boolean): Promise<number>
...
@@ -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.
Obtains the time elapsed since the Unix epoch. This API uses a promise to return the result.
**System capability**
: SystemCapability.Misc
s
ervices.Time
**System capability**
: SystemCapability.Misc
S
ervices.Time
-
**Parameters**
-
**Parameters**
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
...
@@ -138,7 +138,7 @@ getRealActiveTime(isNano?: boolean, callback: AsyncCallback<number>): void
...
@@ -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.
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.Misc
s
ervices.Time
**System capability**
: SystemCapability.Misc
S
ervices.Time
-
**Parameters**
-
**Parameters**
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
...
@@ -165,7 +165,7 @@ getRealActiveTime(isNano?: boolean): Promise<number>
...
@@ -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.
Obtains the time elapsed since system start, excluding the deep sleep time. This API uses a promise to return the result.
**System capability**
: SystemCapability.Misc
s
ervices.Time
**System capability**
: SystemCapability.Misc
S
ervices.Time
-
**Parameters**
-
**Parameters**
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
...
@@ -194,7 +194,7 @@ getRealTime(callback: AsyncCallback<number>): void
...
@@ -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.
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.Misc
s
ervices.Time
**System capability**
: SystemCapability.Misc
S
ervices.Time
-
**Parameters**
-
**Parameters**
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
...
@@ -221,7 +221,7 @@ getRealTime(): Promise<number>
...
@@ -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.
Obtains the time elapsed since system start, including the deep sleep time. This API uses a promise to return the result.
**System capability**
: SystemCapability.Misc
s
ervices.Time
**System capability**
: SystemCapability.Misc
S
ervices.Time
-
**Parameters**
-
**Parameters**
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
...
@@ -252,7 +252,7 @@ Sets the system date. This API uses an asynchronous callback to return the resul
...
@@ -252,7 +252,7 @@ Sets the system date. This API uses an asynchronous callback to return the resul
**Required permissions**
: ohos.permission.SET_TIME
**Required permissions**
: ohos.permission.SET_TIME
**System capability**
: SystemCapability.Misc
s
ervices.Time
**System capability**
: SystemCapability.Misc
S
ervices.Time
-
**Parameters**
-
**Parameters**
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
...
@@ -282,7 +282,7 @@ Sets the system date. This API uses a promise to return the result.
...
@@ -282,7 +282,7 @@ Sets the system date. This API uses a promise to return the result.
**Required permissions**
: ohos.permission.SET_TIME
**Required permissions**
: ohos.permission.SET_TIME
**System capability**
: SystemCapability.Misc
s
ervices.Time
**System capability**
: SystemCapability.Misc
S
ervices.Time
-
**Parameters**
-
**Parameters**
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
...
@@ -312,7 +312,7 @@ getDate(callback: AsyncCallback<Date>): void
...
@@ -312,7 +312,7 @@ getDate(callback: AsyncCallback<Date>): void
Obtains the current system date. This API uses an asynchronous callback to return the result.
Obtains the current system date. This API uses an asynchronous callback to return the result.
**System capability**
: SystemCapability.Misc
s
ervices.Time
**System capability**
: SystemCapability.Misc
S
ervices.Time
-
**Parameters**
-
**Parameters**
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
...
@@ -338,7 +338,7 @@ getDate(): Promise<Date>
...
@@ -338,7 +338,7 @@ getDate(): Promise<Date>
Obtains the current system date. This API uses a promise to return the result.
Obtains the current system date. This API uses a promise to return the result.
**System capability**
: SystemCapability.Misc
s
ervices.Time
**System capability**
: SystemCapability.Misc
S
ervices.Time
-
Return value
-
Return value
| Type| Description|
| Type| Description|
...
@@ -364,7 +364,7 @@ Sets the system time zone. This API uses an asynchronous callback to return the
...
@@ -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
**Required permissions**
: ohos.permission.SET_TIME_ZONE
**System capability**
: SystemCapability.Misc
s
ervices.Time
**System capability**
: SystemCapability.Misc
S
ervices.Time
-
**Parameters**
-
**Parameters**
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
...
@@ -393,7 +393,7 @@ Sets the system time zone. This API uses a promise to return the result.
...
@@ -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
**Required permissions**
: ohos.permission.SET_TIME_ZONE
**System capability**
: SystemCapability.Misc
s
ervices.Time
**System capability**
: SystemCapability.Misc
S
ervices.Time
-
**Parameters**
-
**Parameters**
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
...
@@ -422,7 +422,7 @@ getTimezone(callback: AsyncCallback<string>): void
...
@@ -422,7 +422,7 @@ getTimezone(callback: AsyncCallback<string>): void
Obtains the system time zone. This API uses an asynchronous callback to return the result.
Obtains the system time zone. This API uses an asynchronous callback to return the result.
**System capability**
: SystemCapability.Misc
s
ervices.Time
**System capability**
: SystemCapability.Misc
S
ervices.Time
-
**Parameters**
-
**Parameters**
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
...
@@ -448,7 +448,7 @@ getTimezone(): Promise<string>
...
@@ -448,7 +448,7 @@ getTimezone(): Promise<string>
Obtains the system time zone. This API uses a promise to return the result.
Obtains the system time zone. This API uses a promise to return the result.
**System capability**
: SystemCapability.Misc
s
ervices.Time
**System capability**
: SystemCapability.Misc
S
ervices.Time
-
Return value
-
Return value
| Type| Description|
| Type| Description|
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录