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

Fix documentation issues in recent DateTime API additions #68019

Merged
merged 2 commits into from
Apr 15, 2022

Conversation

akoeplinger
Copy link
Member

@akoeplinger akoeplinger commented Apr 14, 2022

The microseconds parameter accepts 0-999, not 0-900. This was likely a copy/paste mistake from nanoseconds in #67666

/cc @tarekgh @deeprobin

The microseconds parameter accepts 0-999, not 0-900.
@ghost ghost assigned akoeplinger Apr 14, 2022
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@ghost
Copy link

ghost commented Apr 14, 2022

Tagging subscribers to this area: @dotnet/area-system-runtime
See info in area-owners.md if you want to be subscribed.

Issue Details

The microseconds parameter accepts 0-999, not 0-900. This was likely a copy/paste mistake from nanoseconds in #67666

/cc @tarekgh @deeprobin

Author: akoeplinger
Assignees: akoeplinger
Labels:

area-System.Runtime

Milestone: -

@deeprobin
Copy link
Contributor

I thought it accepts 0-999 but is has only a precision of 100ns.

Is using 901 throwing an exception, if yes this PR lgtm.

Copy link
Member

@danmoseley danmoseley left a comment

Choose a reason for hiding this comment

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

@danmoseley
Copy link
Member

I thought it accepts 0-999 but is has only a precision of 100ns.

Right, but if you supply 999us the math will round it.

Copy link
Contributor

@deeprobin deeprobin left a comment

Choose a reason for hiding this comment

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

Thank you for this fix 👍🏼.
This LGTM.

@stephentoub stephentoub merged commit abf002c into dotnet:main Apr 15, 2022
@akoeplinger akoeplinger deleted the fix-datetime-docs branch April 15, 2022 18:08
@ghost ghost locked as resolved and limited conversation to collaborators May 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants