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

Default calendar #991

Merged
merged 6 commits into from
Oct 14, 2020
Merged

Default calendar #991

merged 6 commits into from
Oct 14, 2020

Conversation

ptomato
Copy link
Collaborator

@ptomato ptomato commented Oct 14, 2020

Closes: #292

This exact same thing is also tested in test/now.mjs.
In the absence of time calendars (#522) we cannot yet have a
Temporal.now.time() method that requires a calendar, so just remove it,
effectively renaming it to the new Temporal.now.timeISO() method.

See: #292
…te()

This also requires switching the order of the arguments so that the
calendar comes before the time zone, which is still optional.

See: #292
Convenience methods that give the current date and datetime in the ISO
8601 calendar.

See: #292
Convenience method that does the conversion in the ISO 8601 calendar. Also
adds Instant.toZonedDateTimeISO() to the documentation, even though it is
not implemented yet.

See: #292
@codecov
Copy link

codecov bot commented Oct 14, 2020

Codecov Report

Merging #991 into main will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #991      +/-   ##
==========================================
+ Coverage   94.34%   94.37%   +0.03%     
==========================================
  Files          18       18              
  Lines        6222     6239      +17     
  Branches      914      916       +2     
==========================================
+ Hits         5870     5888      +18     
+ Misses        345      344       -1     
  Partials        7        7              
Flag Coverage Δ
#test262 46.72% <37.50%> (-0.06%) ⬇️
#tests 90.22% <95.83%> (+0.02%) ⬆️

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

Impacted Files Coverage Δ
polyfill/lib/instant.mjs 97.39% <100.00%> (+0.05%) ⬆️
polyfill/lib/now.mjs 100.00% <100.00%> (ø)
polyfill/lib/ecmascript.mjs 95.74% <0.00%> (+0.04%) ⬆️

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 45b16e0...7dc0a53. Read the comment docs.

Copy link
Collaborator

@sffc sffc 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; thanks!

@ptomato ptomato merged commit 896d4f5 into main Oct 14, 2020
@ptomato ptomato deleted the 292-default-calendar branch October 14, 2020 21:50
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 about the default calendar?
2 participants