rrule-temporal 1.5.1 → 1.5.2
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/README.md +2 -1
- package/dist/index.cjs +2676 -3017
- package/dist/index.d.cts +280 -279
- package/dist/index.d.ts +280 -279
- package/dist/index.js +2693 -11
- package/dist/totext.cjs +935 -3751
- package/dist/totext.d.cts +6 -5
- package/dist/totext.d.ts +6 -5
- package/dist/totext.js +934 -723
- package/package.json +7 -7
- package/dist/chunk-S4JPXM4U.js +0 -3015
package/README.md
CHANGED
|
@@ -166,6 +166,7 @@ rule.toString();
|
|
|
166
166
|
toText(rule); // uses the runtime locale, defaults to English
|
|
167
167
|
toText(rule, "es"); // Spanish description
|
|
168
168
|
toText(rule, "en", { includeDtstart: true }); // include "starting from <DTSTART date>"
|
|
169
|
+
toText(rule, "en", { excludeTzAbbreviation: true }); // omit timezone abbreviation in the output
|
|
169
170
|
toText(rule);
|
|
170
171
|
// "every day for 3 times"
|
|
171
172
|
|
|
@@ -299,7 +300,7 @@ Notes
|
|
|
299
300
|
| `next(after?, inclusive?)` | Next occurrence after a given date. |
|
|
300
301
|
| `previous(before?, inclusive?)` | Previous occurrence before a date. |
|
|
301
302
|
| `toString()` | Convert the rule back into `DTSTART` and `RRULE` lines. |
|
|
302
|
-
| `toText(rule, locale?, options?)` | Human readable description (`en`, `es`, `hi`, `yue`, `ar`, `he`, `zh`, `fr`). Options: `{ includeDtstart?: boolean }`. |
|
|
303
|
+
| `toText(rule, locale?, options?)` | Human readable description (`en`, `es`, `hi`, `yue`, `ar`, `he`, `zh`, `fr`). Options: `{ includeDtstart?: boolean, excludeTzAbbreviation?: boolean }`. |
|
|
303
304
|
| `options()` | Return the normalized options object. |
|
|
304
305
|
|
|
305
306
|
## Benchmarks
|