Repository
Current version released
3 years ago
timezones
A list with all the JavaScript possible timezones.
Based on this StackOverflow Question
Usage
Deno π
import {
randomTimeZone,
timeZones,
} from "https://deno.land/x/timezones/mod.ts";
console.log(`My timezone is ${randomTimeZone()}`);
const date = new Date();
timeZones.forEach((timeZone) => {
console.log(timeZone, date.toLocaleString("en-US", { timeZone }));
});
Node.js π’
You have exactly the same API
import { randomTimeZone, timeZone } from "@ultirequiem/timezones";
Browser
Using type module π±
Using a plain script tag π
Documentation
Autogenerated Documentation π
Support
Open an Issue, I will check it a soon as possible π
If you want to hurry me up a bit send me a tweet π
Consider supporting me on Patreon if you like my work π
Donβt forget to start the repo β
Notes
This was done mainly because Timero.
Licence
Licensed under the MIT License.