Skip to content

Commit

Permalink
docs(page): add new examples to page
Browse files Browse the repository at this point in the history
  • Loading branch information
nascjoao committed Aug 20, 2024
1 parent 04f5dc6 commit 2a88f03
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,14 @@ <h2 class="my-4 opacity-70 text-sm tracking-widest uppercase font-bold">
<code
class="block whitespace-pre-wrap bg-neutral-200 dark:bg-neutral-800 py-2 px-4 rounded-md">tikjs(60).format('Ti[m]e mm:ss'); // Time 01:00</code>
<br />
<code class="block whitespace-pre-wrap bg-neutral-200 dark:bg-neutral-800 py-2 px-4 rounded-md">tikjs().dates.getDurationBetween(
<code
class="block whitespace-pre-wrap bg-neutral-200 dark:bg-neutral-800 py-2 px-4 rounded-md">tikjs('10y').format('y [years]'); // 10 years</code>
<br />
<code class="block whitespace-pre-wrap bg-neutral-200 dark:bg-neutral-800 py-2 px-4 rounded-md">tikjs(
new Date("2024-01-01T05:13:05Z"),
new Date("2024-01-01T02:30:20Z"),
new Date("2024-01-01T01:00:00Z"),
).format("h [hours], m [minutes] [and] s [seconds]")

// 4 hours, 13 minutes and 5 seconds
</code>
</section>
Expand Down

0 comments on commit 2a88f03

Please sign in to comment.