acsi-core 1.2.1 → 1.2.6
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.d.ts +3 -2
- package/dist/index.js +13 -42
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +13 -42
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/constants.d.ts +0 -1
- package/dist/utils/getTimeZoneId.d.ts +6 -0
- package/dist/utils/localTimeToUtc.d.ts +8 -0
- package/dist/utils/timeSpanToLocalMoment.d.ts +2 -2
- package/dist/utils/utcToLocalTime.d.ts +0 -7
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: (time: string, FORMAT?: string | undefined) => string;
|
|
2
|
+
/**
|
|
3
|
+
* Converts local time to UTC format for server API calls
|
|
4
|
+
* @param time - Local time string (can be ISO format or other moment-parseable formats)
|
|
5
|
+
* @param FORMAT - Optional output format (default: "YYYY-MM-DDTHH:mm:ss[Z]")
|
|
6
|
+
* @returns UTC formatted time string
|
|
7
|
+
*/
|
|
8
|
+
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import moment from "moment
|
|
2
|
-
declare const _default: (time: string
|
|
1
|
+
import moment from "moment";
|
|
2
|
+
declare const _default: (time: string) => moment.Moment | null;
|
|
3
3
|
export default _default;
|
|
@@ -1,9 +1,2 @@
|
|
|
1
1
|
declare const _default: (time: string, FORMAT?: string | undefined) => string;
|
|
2
|
-
/**
|
|
3
|
-
* Convert a UTC time string to a formatted date string, optionally applying a timezone.
|
|
4
|
-
*
|
|
5
|
-
* - If `timezone` is omitted, the result is converted to the local machine timezone.
|
|
6
|
-
* - If `timezone` is an offset (e.g., "UTC+2", "+02:00"), the offset is applied to the UTC time.
|
|
7
|
-
* - If `timezone` is a named IANA zone (e.g., "Asia/Ho_Chi_Minh"), the time is converted to that zone.
|
|
8
|
-
*/
|
|
9
2
|
export default _default;
|