@arkyn/shared 3.0.1-beta.122 → 3.0.1-beta.123
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.
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* **Note:** This function works with UTC+0 by default. The returned formatted string is not automatically converted to the machine's local timezone.
|
|
6
6
|
* To adjust the timezone, you must manually specify the `timezone` parameter (e.g., -3 for UTC-3).
|
|
7
7
|
*
|
|
8
|
-
* @param {[
|
|
8
|
+
* @param {string[]} dateTime - An array containing the date and optional time.
|
|
9
9
|
* - The first element is the date string.
|
|
10
10
|
* - The second element is the time string (default is "00:00:00").
|
|
11
11
|
* @param {"brazilianDate" | "isoDate" | "timestamp"} inputFormat - The format of the input date.
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
* console.log(formattedDate); // Output: "12-25-2023 15:30:00"
|
|
58
58
|
* ```
|
|
59
59
|
*/
|
|
60
|
-
declare function formatDate([date, time]: [
|
|
60
|
+
declare function formatDate([date, time]: string[], inputFormat: "brazilianDate" | "isoDate" | "timestamp", outputFormat: string, timezone?: number): string;
|
|
61
61
|
export { formatDate };
|
|
62
62
|
//# sourceMappingURL=formatDate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatDate.d.ts","sourceRoot":"","sources":["../../src/formats/formatDate.ts"],"names":[],"mappings":"AAqBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AAEH,iBAAS,UAAU,CACjB,CAAC,IAAI,EAAE,IAAiB,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"formatDate.d.ts","sourceRoot":"","sources":["../../src/formats/formatDate.ts"],"names":[],"mappings":"AAqBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AAEH,iBAAS,UAAU,CACjB,CAAC,IAAI,EAAE,IAAiB,CAAC,EAAE,MAAM,EAAE,EACnC,WAAW,EAAE,eAAe,GAAG,SAAS,GAAG,WAAW,EACtD,YAAY,EAAE,MAAM,EACpB,QAAQ,GAAE,MAAU,GACnB,MAAM,CAkCR;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -19,7 +19,7 @@ function formatDateString(date, format) {
|
|
|
19
19
|
* **Note:** This function works with UTC+0 by default. The returned formatted string is not automatically converted to the machine's local timezone.
|
|
20
20
|
* To adjust the timezone, you must manually specify the `timezone` parameter (e.g., -3 for UTC-3).
|
|
21
21
|
*
|
|
22
|
-
* @param {[
|
|
22
|
+
* @param {string[]} dateTime - An array containing the date and optional time.
|
|
23
23
|
* - The first element is the date string.
|
|
24
24
|
* - The second element is the time string (default is "00:00:00").
|
|
25
25
|
* @param {"brazilianDate" | "isoDate" | "timestamp"} inputFormat - The format of the input date.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* **Note:** This function works with UTC+0 by default. The returned Date object is not automatically converted to the machine's local timezone.
|
|
6
6
|
* To adjust the timezone, you must manually specify the `timezone` parameter (e.g., -3 for UTC-3).
|
|
7
7
|
*
|
|
8
|
-
* @param {[
|
|
8
|
+
* @param {string[]} dateTime - An array containing the date and optional time.
|
|
9
9
|
* - The first element is the date string.
|
|
10
10
|
* - The second element is the time string (default is "00:00:00")
|
|
11
11
|
* @param {"brazilianDate" | "isoDate" | "timestamp"} inputFormat - The format of the input date.
|
|
@@ -36,6 +36,6 @@
|
|
|
36
36
|
* console.log(date); // Outputs a Date object for "2023-12-25T15:30:00.000Z" (UTC)
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
|
-
declare function parseToDate([date, time]: [
|
|
39
|
+
declare function parseToDate([date, time]: string[], inputFormat: "brazilianDate" | "isoDate" | "timestamp", timezone?: number): Date;
|
|
40
40
|
export { parseToDate };
|
|
41
41
|
//# sourceMappingURL=parseToDate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parseToDate.d.ts","sourceRoot":"","sources":["../../src/parsers/parseToDate.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,iBAAS,WAAW,CAClB,CAAC,IAAI,EAAE,IAAiB,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"parseToDate.d.ts","sourceRoot":"","sources":["../../src/parsers/parseToDate.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,iBAAS,WAAW,CAClB,CAAC,IAAI,EAAE,IAAiB,CAAC,EAAE,MAAM,EAAE,EACnC,WAAW,EAAE,eAAe,GAAG,SAAS,GAAG,WAAW,EACtD,QAAQ,GAAE,MAAU,GACnB,IAAI,CAkCN;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { ValidateDateService } from "../services/validateDateService";
|
|
|
6
6
|
* **Note:** This function works with UTC+0 by default. The returned Date object is not automatically converted to the machine's local timezone.
|
|
7
7
|
* To adjust the timezone, you must manually specify the `timezone` parameter (e.g., -3 for UTC-3).
|
|
8
8
|
*
|
|
9
|
-
* @param {[
|
|
9
|
+
* @param {string[]} dateTime - An array containing the date and optional time.
|
|
10
10
|
* - The first element is the date string.
|
|
11
11
|
* - The second element is the time string (default is "00:00:00")
|
|
12
12
|
* @param {"brazilianDate" | "isoDate" | "timestamp"} inputFormat - The format of the input date.
|