From be67e70fb92a6c9588c0440269a1a06987887338 Mon Sep 17 00:00:00 2001 From: lijuntao Date: Thu, 15 Sep 2022 20:19:31 +0800 Subject: [PATCH] =?UTF-8?q?Signed-off-by:=20lijuntao=20=20fix=EF=BC=9AAPI=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/@ohos.systemTime.d.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/api/@ohos.systemTime.d.ts b/api/@ohos.systemTime.d.ts index ef8856074d..4482eff9ad 100755 --- a/api/@ohos.systemTime.d.ts +++ b/api/@ohos.systemTime.d.ts @@ -27,6 +27,9 @@ declare namespace systemTime { * @permission ohos.permission.SET_TIME * @param time Target time stamp (ms) * @since 7 + * @throws {BusinessError} if process failed + * @errorcode 201 Permission verification failed + * @errorcode 401 parameter error */ function setTime(time : number, callback : AsyncCallback) : void; function setTime(time : number) : Promise; @@ -60,6 +63,9 @@ declare namespace systemTime { * @permission ohos.permission.SET_TIME * @param date The target date * @since 7 + * @throws {BusinessError} if process failed + * @errorcode 201 Permission verification failed + * @errorcode 401 parameter error */ function setDate(date: Date, callback: AsyncCallback): void; function setDate(date: Date): Promise; @@ -76,14 +82,17 @@ declare namespace systemTime { * @permission ohos.permission.SET_TIME_ZONE * @param timezone The system time zone * @since 7 + * @throws {BusinessError} if process failed + * @errorcode 201 Permission verification failed + * @errorcode 401 parameter error */ function setTimezone(timezone: string, callback: AsyncCallback): void; function setTimezone(timezone: string): Promise; - /** + /** * Obtains the system time zone. * @since 8 - */ + */ function getTimezone(callback: AsyncCallback): void; function getTimezone(): Promise; } -- Gitee