Skip to content

Fix Windows system time conversion for get_time() #1865

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

Merged
merged 4 commits into from
Feb 18, 2012
Merged

Fix Windows system time conversion for get_time() #1865

merged 4 commits into from
Feb 18, 2012

Conversation

cpeterso
Copy link
Contributor

Windows' FILETIME is the number of 100-nanosecond units (hectonanoseconds!!) since 1601.

I also added some time comments and tests. I have run the tests on OSX and Windows.

brson added a commit that referenced this pull request Feb 18, 2012
Fix Windows system time conversion for get_time()
@brson brson merged commit 9e8fc36 into rust-lang:master Feb 18, 2012
@brson
Copy link
Contributor

brson commented Feb 18, 2012

Thanks!

Kobzol pushed a commit to Kobzol/rust that referenced this pull request Dec 30, 2024
bors pushed a commit to rust-lang-ci/rust that referenced this pull request Jan 2, 2025
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.

2 participants