未验证 提交 b4ad0ac6 编写于 作者: 王江颖 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-system-time.md.

Signed-off-by: N王江颖 <wangjiangying@huawei.com>
上级 edd52ed2
......@@ -357,7 +357,7 @@ setDate(date: Date, callback: AsyncCallback&lt;void&gt;): void
**示例:**
```js
var data = new Date("October 13, 2020 11:13:00");
var data = new Date();
systemTime.setDate(data,(error, data) => {
if (error) {
console.error('failed to systemTime.setDate because ' + JSON.stringify(error));
......@@ -393,7 +393,7 @@ setDate(date: Date): Promise&lt;void&gt;
**示例:**
```js
var data = new Date("October 13, 2020 11:13:00");
var data = new Date();
systemTime.setDate(data).then((value) => {
console.log(`systemTime.setDate success data : ` + JSON.stringify(value));
}).catch((error) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册