Skip to content

Commit 374a934

Browse files
authored
update readme for 'includeUtc' (#265)
1 parent f65d7cf commit 374a934

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ import { getTimeZones, rawTimeZones, timeZonesNames, abbreviations } from "@vvo/
3131

3232
```js
3333
const timeZones = getTimeZones();
34+
35+
// You can also provide an optional parameter to include UTC in the result.
36+
// This adds a time zone with the name "UTC" and a fixed offset of 0.
37+
const timeZonesWithUtc = getTimeZones({ includeUtc: true });
3438
```
3539

3640
This method returns an array of time zones objects:

0 commit comments

Comments
 (0)