mirror of
https://github.com/therootcompany/tz.js
synced 2025-03-01 14:10:51 +00:00
update docs with demo
This commit is contained in:
parent
a0172f68a3
commit
dacf0eaaf2
@ -3,7 +3,10 @@
|
||||
A fast, lightweight, zero-dependency library to translate between Time Zones and UTC with native `Intl.DateTimeFormat`
|
||||
in ~100 LoC. For Node.js & Browsers.
|
||||
|
||||
XTZ is a poor man's Temporal polyfill, but just for time zones.
|
||||

|
||||
|
||||
XTZ is a poor man's Temporal polyfill, but just for time zones. \
|
||||
Demo: <https://therootcompany.github.io/tz.js/>
|
||||
|
||||
> What UTC time will it be when it's 3:15am in New York?
|
||||
|
||||
@ -80,6 +83,10 @@ npm install --save xtz
|
||||
var TZ = require("xtz");
|
||||
```
|
||||
|
||||
## Demo
|
||||
|
||||
See <https://therootcompany.github.io/tz.js/>.
|
||||
|
||||
# API
|
||||
|
||||
- `toTimeZone(utcDate, timeZone)`
|
||||
|
BIN
xtz-preview.png
Normal file
BIN
xtz-preview.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 80 KiB |
Loading…
x
Reference in New Issue
Block a user