Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Blackbourn committed Jul 8, 2023
1 parent bb9d288 commit 8aa324f
Show file tree
Hide file tree
Showing 15 changed files with 203 additions and 203 deletions.
6 changes: 3 additions & 3 deletions docs/classes/Calendar.html

Large diffs are not rendered by default.

36 changes: 18 additions & 18 deletions docs/classes/Duration.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/classes/HolidayCalendar.html

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions docs/classes/IANATimezone.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/classes/LocaleInfo.html

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions docs/classes/Timezone.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/classes/WeekendCalendar.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions docs/enums/BusinessDayConvention.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/interfaces/DatePartResponse.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/interfaces/DayPlurals.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/interfaces/I18nSettings.html

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/interfaces/TimezoneOffset.html

Large diffs are not rendered by default.

232 changes: 116 additions & 116 deletions docs/modules.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/pages/guide/general-usage.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h2>Constructing Dates</h2>
</code></pre>
<p>The <a href="../../modules.html#parseDate"><code>parseDate</code></a> function constructs a date from a string and a given
format. If the timezone offset is not specified the supplied timezone is used.</p>
<pre><code class="language-js"><span class="hl-0">import</span><span class="hl-1"> { </span><span class="hl-2">tzLocal</span><span class="hl-1">, </span><span class="hl-2">tzUtc</span><span class="hl-1">, </span><span class="hl-2">fetchTimezone</span><span class="hl-1">, </span><span class="hl-2">parseDate</span><span class="hl-1"> } </span><span class="hl-0">from</span><span class="hl-1"> </span><span class="hl-3">&#39;@jetblack/date&#39;</span><br/><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">d1</span><span class="hl-1"> = </span><span class="hl-6">parseDate</span><span class="hl-1">(</span><span class="hl-3">&quot;1-Jul-00&quot;</span><span class="hl-1">, </span><span class="hl-3">&quot;d-mmm-yy&quot;</span><span class="hl-1">, </span><span class="hl-3">&quot;en&quot;</span><span class="hl-1">, </span><span class="hl-2">tzLocal</span><span class="hl-1">)</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">d2</span><span class="hl-1"> = </span><span class="hl-6">parseDate</span><span class="hl-1">(</span><span class="hl-3">&quot;1-Jan-00 12:30&quot;</span><span class="hl-1">, </span><span class="hl-3">&quot;d-mmm-yy HH:MM&quot;</span><span class="hl-1">, </span><span class="hl-3">&quot;en&quot;</span><span class="hl-1">, </span><span class="hl-2">tzUtc</span><span class="hl-1">)</span><br/><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">tzTokyo</span><span class="hl-1"> = </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-6">fetchTimezone</span><span class="hl-1">(</span><span class="hl-3">&#39;Asia/Tokyo&#39;</span><span class="hl-1">)</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">d3</span><span class="hl-1"> = </span><span class="hl-6">parseDate</span><span class="hl-1">(</span><span class="hl-3">&quot;1-Jul-00 21:00:15.250&quot;</span><span class="hl-1">, </span><span class="hl-3">&quot;d-mmm-yy HH:MM:SS.FFF&quot;</span><span class="hl-1">, </span><span class="hl-3">&quot;en&quot;</span><span class="hl-1">, </span><span class="hl-2">tzTokyo</span><span class="hl-1">)</span>
<pre><code class="language-js"><span class="hl-0">import</span><span class="hl-1"> { </span><span class="hl-2">tzLocal</span><span class="hl-1">, </span><span class="hl-2">tzUtc</span><span class="hl-1">, </span><span class="hl-2">fetchTimezone</span><span class="hl-1">, </span><span class="hl-2">parseDate</span><span class="hl-1"> } </span><span class="hl-0">from</span><span class="hl-1"> </span><span class="hl-3">&#39;@jetblack/date&#39;</span><br/><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">d1</span><span class="hl-1"> = </span><span class="hl-6">parseDate</span><span class="hl-1">(</span><span class="hl-3">&quot;1-Jul-00&quot;</span><span class="hl-1">, </span><span class="hl-3">&quot;d-mmm-yy&quot;</span><span class="hl-1">, </span><span class="hl-2">tzLocal</span><span class="hl-1">)</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">d2</span><span class="hl-1"> = </span><span class="hl-6">parseDate</span><span class="hl-1">(</span><span class="hl-3">&quot;1-Jan-00 12:30&quot;</span><span class="hl-1">, </span><span class="hl-3">&quot;d-mmm-yy HH:MM&quot;</span><span class="hl-1">, </span><span class="hl-2">tzUtc</span><span class="hl-1">)</span><br/><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">tzTokyo</span><span class="hl-1"> = </span><span class="hl-0">await</span><span class="hl-1"> </span><span class="hl-6">fetchTimezone</span><span class="hl-1">(</span><span class="hl-3">&#39;Asia/Tokyo&#39;</span><span class="hl-1">)</span><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">d3</span><span class="hl-1"> = </span><span class="hl-6">parseDate</span><span class="hl-1">(</span><span class="hl-3">&quot;1-Jul-00 21:00:15.250&quot;</span><span class="hl-1">, </span><span class="hl-3">&quot;d-mmm-yy HH:MM:SS.FFF&quot;</span><span class="hl-1">, </span><span class="hl-2">tzTokyo</span><span class="hl-1">)</span>
</code></pre>

<a href="#deconstructing-dates" id="deconstructing-dates" style="color: inherit; text-decoration: none;">
Expand Down
6 changes: 3 additions & 3 deletions manual/guide/general-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ format. If the timezone offset is not specified the supplied timezone is used.
```js
import { tzLocal, tzUtc, fetchTimezone, parseDate } from '@jetblack/date'

const d1 = parseDate("1-Jul-00", "d-mmm-yy", "en", tzLocal)
const d2 = parseDate("1-Jan-00 12:30", "d-mmm-yy HH:MM", "en", tzUtc)
const d1 = parseDate("1-Jul-00", "d-mmm-yy", tzLocal)
const d2 = parseDate("1-Jan-00 12:30", "d-mmm-yy HH:MM", tzUtc)

const tzTokyo = await fetchTimezone('Asia/Tokyo')
const d3 = parseDate("1-Jul-00 21:00:15.250", "d-mmm-yy HH:MM:SS.FFF", "en", tzTokyo)
const d3 = parseDate("1-Jul-00 21:00:15.250", "d-mmm-yy HH:MM:SS.FFF", tzTokyo)
```


Expand Down

0 comments on commit 8aa324f

Please sign in to comment.