@tmlmobilidade/dates 20260616.2252.19 → 20260617.1703.12
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/dates.d.ts +2 -2
- package/dist/dates.js +1 -1
- package/package.json +1 -1
package/dist/dates.d.ts
CHANGED
|
@@ -137,11 +137,11 @@ export declare class Dates {
|
|
|
137
137
|
* Sets the timezone for the Dates object.
|
|
138
138
|
* @param timezone The timezone to set in the format of an IANA timezone.
|
|
139
139
|
* @param method The method to use for updating the timezone information.
|
|
140
|
-
* - `offset_only` Updates only offset setting to the new timezone. The ISO string will show adjusted time components (hour, minutes, etc.) to their equivalent in the new timezone. The UTC value in milliseconds stays the same. The timestamp is the source of truth.
|
|
140
|
+
* - `offset_only` Updates only offset setting to the new timezone. The ISO string will show adjusted time components (hour, minutes, etc.) to their equivalent in the new timezone. The UTC value in milliseconds stays the same. The UNIX timestamp is the source of truth.
|
|
141
141
|
* - `rebase_utc` Keeps the individual time components (hour, minutes, etc.) and updates the internal UTC value in milliseconds to reflect the change. The ISO string will show the same time components as before, but the UTC value in milliseconds will be adjusted to match the new timezone. The ISO string is the source of truth.
|
|
142
142
|
* @returns The Dates object
|
|
143
143
|
*/
|
|
144
|
-
setZone(timezone: TimezoneIdentified, method: 'offset_only' | 'rebase_utc'): Dates;
|
|
144
|
+
setZone(timezone: 'local' | 'utc' | TimezoneIdentified, method: 'offset_only' | 'rebase_utc'): Dates;
|
|
145
145
|
/**
|
|
146
146
|
* Returns a new Dates object with the start of the specified unit.
|
|
147
147
|
* @param unit The unit to set the start of, e.g., 'day', 'month', 'year', etc.
|
package/dist/dates.js
CHANGED
|
@@ -265,7 +265,7 @@ export class Dates {
|
|
|
265
265
|
* Sets the timezone for the Dates object.
|
|
266
266
|
* @param timezone The timezone to set in the format of an IANA timezone.
|
|
267
267
|
* @param method The method to use for updating the timezone information.
|
|
268
|
-
* - `offset_only` Updates only offset setting to the new timezone. The ISO string will show adjusted time components (hour, minutes, etc.) to their equivalent in the new timezone. The UTC value in milliseconds stays the same. The timestamp is the source of truth.
|
|
268
|
+
* - `offset_only` Updates only offset setting to the new timezone. The ISO string will show adjusted time components (hour, minutes, etc.) to their equivalent in the new timezone. The UTC value in milliseconds stays the same. The UNIX timestamp is the source of truth.
|
|
269
269
|
* - `rebase_utc` Keeps the individual time components (hour, minutes, etc.) and updates the internal UTC value in milliseconds to reflect the change. The ISO string will show the same time components as before, but the UTC value in milliseconds will be adjusted to match the new timezone. The ISO string is the source of truth.
|
|
270
270
|
* @returns The Dates object
|
|
271
271
|
*/
|