Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Future Date"-values are now future dates #165

Merged
merged 1 commit into from
Aug 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,42 +51,42 @@ <h2>Past Date</h2>
<h2>Future Date</h2>
<p>
Local date:
<local-time datetime="2017-01-01T00:00:00.000Z" weekday="short" year="numeric" month="short" day="numeric">
Jan 1 2017
<local-time datetime="2023-01-01T00:00:00.000Z" weekday="short" year="numeric" month="short" day="numeric">
Jan 1 2023
</local-time>
</p>

<p>
Local time:
<local-time datetime="2017-01-01T00:00:00.000Z" hour="numeric" minute="2-digit" second="2-digit">
Jan 1 2017
<local-time datetime="2023-01-01T00:00:00.000Z" hour="numeric" minute="2-digit" second="2-digit">
Jan 1 2023
</local-time>
</p>

<p>
Local date and time:
<local-time datetime="2017-01-01T00:00:00.000Z" weekday="short" year="numeric" month="short" day="numeric" hour="numeric" minute="2-digit" second="2-digit">
Jan 1 2017
<local-time datetime="2023-01-01T00:00:00.000Z" weekday="short" year="numeric" month="short" day="numeric" hour="numeric" minute="2-digit" second="2-digit">
Jan 1 2023
</local-time>
</p>

<p>
Relative time:
<relative-time datetime="2017-01-01T00:00:00.000Z">
<relative-time datetime="2023-01-01T00:00:00.000Z">
Oops! This browser doesn't support Web Components.
</relative-time>
</p>

<p>
Time until:
<time-until datetime="2020-12-31T00:00:00-05:00">
<time-until datetime="2024-12-31T00:00:00-05:00">
Oops! This browser doesn't support Web Components.
</time-until>
</p>

<p>
Time until (micro format):
<time-until format="micro" datetime="2020-12-31T00:00:00-05:00">
<time-until format="micro" datetime="2024-12-31T00:00:00-05:00">
Oops! This browser doesn't support Web Components.
</time-until>
</p>
Expand Down