ミラー元
https://github.com/therootcompany/tz.js.git
前回の同期 2024-11-16 17:29:01 +00:00
update docs with demo
このコミットが含まれているのは:
コミット
dacf0eaaf2
@ -3,7 +3,10 @@
|
|||||||
A fast, lightweight, zero-dependency library to translate between Time Zones and UTC with native `Intl.DateTimeFormat`
|
A fast, lightweight, zero-dependency library to translate between Time Zones and UTC with native `Intl.DateTimeFormat`
|
||||||
in ~100 LoC. For Node.js & Browsers.
|
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?
|
> 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");
|
var TZ = require("xtz");
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Demo
|
||||||
|
|
||||||
|
See <https://therootcompany.github.io/tz.js/>.
|
||||||
|
|
||||||
# API
|
# API
|
||||||
|
|
||||||
- `toTimeZone(utcDate, timeZone)`
|
- `toTimeZone(utcDate, timeZone)`
|
||||||
|
バイナリ
xtz-preview.png
ノーマルファイル
バイナリ
xtz-preview.png
ノーマルファイル
バイナリファイルは表示されません。
変更後 幅: | 高さ: | サイズ: 80 KiB |
読み込み中…
x
新しいイシューから参照
ユーザーをブロックする