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

Document PlainDateTime use cases #1344

Merged
merged 1 commit into from
Feb 8, 2021
Merged

Conversation

justingrant
Copy link
Collaborator

Fixes #948

@codecov
Copy link

codecov bot commented Feb 2, 2021

Codecov Report

Merging #1344 (42b7fde) into main (a6c2525) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1344   +/-   ##
=======================================
  Coverage   95.08%   95.08%           
=======================================
  Files          19       19           
  Lines        9692     9692           
  Branches     1525     1525           
=======================================
  Hits         9216     9216           
  Misses        468      468           
  Partials        8        8           
Flag Coverage Δ
test262 54.32% <ø> (ø)
tests 90.84% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a6c2525...42b7fde. Read the comment docs.

Copy link
Member

@ryzokuken ryzokuken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thank you very much!

@ryzokuken ryzokuken merged commit 9a73f75 into tc39:main Feb 8, 2021
For example, the British Commonwealth observes a [two minute silence](https://en.wikipedia.org/wiki/Two-minute_silence) every November 11th at 11:00AM in local time.
- When time zone is irrelevant, e.g. a sleep tracking device that only cares about the local time you went to sleep and woke up, regardless of where in the world you are.
- Parsing local time from ISO 8601 strings like `2020-04-09T16:08-08:00` that have a numeric offset without an IANA time zone like `America/Los_Angeles`.
These strings can also be parsed by `Temporal.Absolute`, but to parse the local date and time then `Temporal.PlainDateTime.from` is required.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temporal.Absolute should be Temporal.Instant, no?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SimenB oops, yes! I missed that, and looks like @justingrant wrote this before Absolute was renamed to Instant. Let me make a quick follow-up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

What are use cases for DateTime after LocalDateTime lands? (for documentation)
3 participants