Skip to content

Fix documentation issues in recent DateTime API additions - #68019

Merged
stephentoub merged 2 commits into
dotnet:mainfrom
akoeplinger:fix-datetime-docs
Apr 15, 2022
Merged

Fix documentation issues in recent DateTime API additions#68019
stephentoub merged 2 commits into
dotnet:mainfrom
akoeplinger:fix-datetime-docs

Conversation

@akoeplinger

@akoeplinger akoeplinger commented Apr 14, 2022

Copy link
Copy Markdown
Member

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
@ghost

ghost commented Apr 14, 2022

Copy link
Copy Markdown

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

ghost commented Apr 14, 2022

Copy link
Copy Markdown

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
Copy Markdown
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.

@danmoseley danmoseley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@danmoseley

Copy link
Copy Markdown
Contributor

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.

@deeprobin deeprobin left a comment

Copy link
Copy Markdown
Contributor

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