You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additionally, since the `timezone` plugin has been integrated into the main library, the `formatTZ` function has been deprecated. Timezones are now imported as modules rather than using `IANA time zone names` (except for UTC timezone).
40
+
Additionally, since the `timezone` plugin has been integrated into the main library, the `formatTZ` function is now obsolete. Timezones are now imported as modules rather than using `IANA time zone names` (except for UTC timezone).
Additionally, since the `timezone` plugin has been integrated into the main library, the `parseTZ` function has been deprecated. Timezones are now imported as modules rather than using `IANA time zone names` (except for UTC timezone).
61
+
Additionally, since the `timezone` plugin has been integrated into the main library, the `parseTZ` function is now obsolete. Timezones are now imported as modules rather than using `IANA time zone names` (except for UTC timezone).
62
62
63
63
```typescript
64
64
import { parse } from'date-and-time';
@@ -99,7 +99,7 @@ Additionally, the `PreparseResult` object returned by the `preparse` function ha
99
99
100
100
### isValid
101
101
102
-
The following usage that takes `PreparseResult` as an argument has been deprecated.
102
+
The following usage that takes `PreparseResult` as an argument is now obsolete.
103
103
104
104
```typescript
105
105
import { isValid, preparse } from'date-and-time';
@@ -114,7 +114,7 @@ Other changes are the same as for the `parse` function.
114
114
115
115
### transform
116
116
117
-
The fourth argument has been changed from `boolean` to `FormatterOptions`. With `FormatterOptions`, you can now specify timezone and locale settings. Additionally, `ParserOptions` has been added as a parameter before `FormatterOptions`. Since the `timezone` plugin has been integrated into the main library, the `transformTZ` function has been deprecated.
117
+
The fourth argument has been changed from `boolean` to `FormatterOptions`. With `FormatterOptions`, you can now specify timezone and locale settings. Additionally, `ParserOptions` has been added as a parameter before `FormatterOptions`. Since the `timezone` plugin has been integrated into the main library, the `transformTZ` function is now obsolete.
118
118
119
119
```typescript
120
120
import { transform } from'date-and-time';
@@ -147,7 +147,7 @@ addYears(now, 1, 'UTC');
147
147
// => Mar 11 2025 01:00:00 GMT+0000
148
148
```
149
149
150
-
Additionally, since the `timezone` plugin has been integrated into the main library, the `addYearsTZ` function has been deprecated. Timezones are now imported as modules rather than using `IANA time zone names` (except for UTC timezone).
150
+
Additionally, since the `timezone` plugin has been integrated into the main library, the `addYearsTZ` function is now obsolete. Timezones are now imported as modules rather than using `IANA time zone names` (except for UTC timezone).
The `timespan` plugin has been deprecated as it has been integrated into the main library's `subtract` function. Please note that the argument order of the `subtract` function has changed. You can achieve the same output as before as follows:
190
+
The `timespan` plugin is now obsolete as it has been integrated into the main library's `subtract` function. Please note that the argument order of the `subtract` function has changed. You can achieve the same output as before as follows:
191
191
192
192
```typescript
193
193
import { subtract } from'date-and-time';
@@ -219,7 +219,7 @@ format(new Date(), 'dddd, D [de] MMMM [de] YYYY, h:mm aa [GMT]ZZ', { locale: es
219
219
220
220
## Plugins
221
221
222
-
The following plugins have been deprecated as they have been integrated into the main library:
222
+
The following plugins are now obsolete as they have been integrated into the main library:
0 commit comments