typo fix and formatting

This commit is contained in:
AJ ONeal 2021-05-28 00:33:21 -06:00
parent e8e1c8fe56
commit de3f74a572
1 changed files with 4 additions and 4 deletions

View File

@ -24,15 +24,15 @@ var tzDate = TZ.toUTC("2021-11-07 03:15:59.000", "America/New_York");
tzDate.toISOString(); tzDate.toISOString();
// "2021-11-07T03:15:59.000-0500" // "2021-11-07T03:15:59.000-0500"
// same as "2021-11-07T08:15:59.000Z" // (same as "2021-11-07T08:15:59.000Z")
``` ```
> What time will it be in New York when it's 7:15am UTC? > What time will it be in New York when it's 7:15am UTC?
```js ```js
// Absolute UTC time to Relative New York time // Absolute UTC time to Relative New York time
TZ.toTimeZoneISOString("2021-11-07T07:15:59.000Z", "America/New_York"); TZ.toTimeZoneISOString("2021-03-14T07:15:59.000Z", "America/New_York");
// "2021-11-07T03:15:59.000-0400" // "2021-03-14T03:15:59.000-0400"
``` ```
```js ```js
@ -45,7 +45,7 @@ var utcDate = TZ.toTimeZone("2021-03-14T07:15:59.000Z", "America/New_York");
utcDate.toISOString(); utcDate.toISOString();
// "2021-03-14T03:15:59.000-0400" // "2021-03-14T03:15:59.000-0400"
// same as "2021-11-07T07:15:59.000Z" // (same as "2021-11-07T07:15:59.000Z")
``` ```
# Features # Features