UNPKG

1.19 kBTypeScriptView Raw
1/*! *****************************************************************************
2Copyright (c) JDJR Corporation. All rights reserved.
3Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4this file except in compliance with the License. You may obtain a copy of the
5License at http://www.apache.org/licenses/LICENSE-2.0
6Author: kemao 2019-05-16 15:26:55
7
8THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
9KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
10WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
11MERCHANTABLITY OR NON-INFRINGEMENT.
12
13See the Apache Version 2.0 License for specific language governing permissions
14and limitations under the License.
15***************************************************************************** */
16export declare class LarkDate {
17 /**
18 * 时间格式化
19 * @param Date date
20 * @param format "yyyy-MM-dd hh:mm:ss.uuu"
21 * @return string date
22 */
23 static format(date: Date, format?: string): string;
24 /**
25 * 代码延迟执行
26 * @param timeout 延时时间
27 */
28 static delay(timeout: number): Promise<void>;
29}