@ztimson/utils 0.23.7 → 0.23.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +40 -56
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +40 -56
- package/dist/index.mjs.map +1 -1
- package/dist/time.d.ts +3 -3
- package/package.json +1 -1
package/dist/time.d.ts
CHANGED
|
@@ -8,12 +8,12 @@ export declare function adjustedInterval(cb: Function, ms: number): () => void;
|
|
|
8
8
|
/**
|
|
9
9
|
* Format date
|
|
10
10
|
*
|
|
11
|
-
* @param {Date | number | string} date Date or timestamp to convert to string
|
|
12
11
|
* @param {string} format How date string will be formatted, default: `YYYY-MM-DD H:mm A`
|
|
13
|
-
* @param
|
|
12
|
+
* @param {Date | number | string} date Date or timestamp, defaults to now
|
|
13
|
+
* @param tz Set timezone offset
|
|
14
14
|
* @return {string} Formated date
|
|
15
15
|
*/
|
|
16
|
-
export declare function formatDate(date
|
|
16
|
+
export declare function formatDate(format?: string, date?: Date | number | string, tz?: string | number): string;
|
|
17
17
|
/**
|
|
18
18
|
* Run a function immediately & repeat every x ms
|
|
19
19
|
*
|