@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/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 tz Override timezone, can be either string or number
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: Date | number | string, format?: string, tz?: string | number): string;
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
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztimson/utils",
3
- "version": "0.23.7",
3
+ "version": "0.23.8",
4
4
  "description": "Utility library",
5
5
  "author": "Zak Timson",
6
6
  "license": "MIT",