This repository was archived by the owner on Jun 27, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +19
-19
lines changed
Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -7,29 +7,29 @@ Some [browsers do not support arbitrary time zone ](http://kangax.github.io/comp
77
88## How to use?
99
10- 1 . install
11-
12- `npm i date-time-format-timezone`
13-
14- 1 . nodejs
15-
16- `require('date-time-format-timezone'); // polyfill is ready`
10+ 1 . Install via nodejs:
11+ ```
12+ npm i date-time-format-timezone
13+ ```
14+ And then import in your code:
15+ ```
16+ require('date-time-format-timezone'); // polyfill is ready
17+ ```
1718
18- 1 . browser
19+ 2 . In the browser
1920
20- for everything
21+ include everything:
2122```
22- <script src="https://unpkg.com/date-time-format-timezone@latest/build/browserified/date-time-format-timezone-complete-min.js">
23+ <script src="https://unpkg.com/date-time-format-timezone@latest/build/browserified/date-time-format-timezone-complete-min.js">
24+ ```
25+ or include individual files:
26+
2327```
24- or
25- for individual files
26-
27- ```
28- <script src="https://unpkg.com/date-time-format-timezone@latest/build/browserified/date-time-format-time-zone-no-data.js">
29- <script src="https://unpkg.com/date-time-format-timezone@latest/build/browserified/data/locales/locale-en-US-POSIX.js">
30- <script src="https://unpkg.com/date-time-format-timezone@latest/build/browserified/data/metazone.js">
31- <script src="https://unpkg.com/date-time-format-timezone@latest/build/browserified/data/timezones/tzdata-america-los_angeles.js">
32- ```
28+ <script src="https://unpkg.com/date-time-format-timezone@latest/build/browserified/date-time-format-time-zone-no-data.js">
29+ <script src="https://unpkg.com/date-time-format-timezone@latest/build/browserified/data/locales/locale-en-US-POSIX.js">
30+ <script src="https://unpkg.com/date-time-format-timezone@latest/build/browserified/data/metazone.js">
31+ <script src="https://unpkg.com/date-time-format-timezone@latest/build/browserified/data/timezones/tzdata-america-los_angeles.js">
32+ ```
3333This polyfill can add this support.
3434
3535``` javascript
You can’t perform that action at this time.
0 commit comments