-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: get all supported timezones list
- Loading branch information
1 parent
cf23f82
commit a302a86
Showing
4 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Supported Timezones | ||
|
||
## Description | ||
|
||
This function returns a list of all supported IANA timezones, making it easy to access and work with timezone data. | ||
|
||
## Usage | ||
|
||
```javascript | ||
import { getSupportedTimezones } from 'world-clockify'; | ||
|
||
const timezones = getSupportedTimezones(); | ||
``` | ||
|
||
## Expected Output | ||
|
||
```bash | ||
|
||
Africa/Abidjan', | ||
'Africa/Accra', | ||
'Africa/Addis_Ababa', | ||
'Africa/Algiers', | ||
'Africa/Asmera', | ||
'Africa/Bamako', | ||
'Africa/Bangui', | ||
'Africa/Banjul', | ||
'Africa/Bissau', | ||
... more items | ||
``` | ||
## Returns | ||
Returns: strings[], Array of string each representing a valid IANA timezone. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters