| Crates.io | nt-time |
| lib.rs | nt-time |
| version | 0.12.1 |
| created_at | 2023-03-27 12:13:35.297662+00 |
| updated_at | 2025-08-02 21:27:25.816681+00 |
| description | A Windows file time library |
| homepage | |
| repository | https://github.com/sorairolake/nt-time |
| max_upload_size | |
| id | 822081 |
| size | 430,036 |
nt-time is a Windows file time library for Rust.
A Windows file time is a 64-bit unsigned integer value that represents the number of 100-nanosecond intervals that have elapsed since "1601-01-01 00:00:00 UTC", and is used as timestamps such as NTFS and 7z. Windows uses a file time to record when an application creates, accesses, or writes to a file.
[!IMPORTANT] Note that many environments, such as the Win32 API, may limit the largest value of the file time to "+30828-09-14 02:48:05.477580700 UTC", which is equal to the largest value of a 64-bit signed integer type when represented as an underlying integer value. This is the largest file time accepted by the
FileTimeToSystemTimefunction of the Win32 API.
Run the following command in your project directory:
cargo add nt-time
chronoEnables the chrono crate.
jiffEnables the jiff crate.
large-datesEnables the large-dates feature of the time crate.
randEnables the rand crate.
serdeEnables the serde crate.
serde-human-readableAllows Serde representations to use a human-readable format. This implicitly
enables the serde feature.
stdEnables features that depend on the standard library. This is enabled by default.
no_std supportThis supports no_std mode. Disables the default feature to enable this.
See the documentation for more details.
The minimum supported Rust version (MSRV) of this library is v1.85.0.
The upstream repository is available at https://github.com/sorairolake/nt-time.git.
Please see CHANGELOG.adoc.
Please see CONTRIBUTING.adoc.
Copyright (C) 2023 Shun Sakai (see AUTHORS.adoc)
This library is distributed under the terms of either the Apache License 2.0 or the MIT License.
This project is compliant with version 3.3 of the REUSE Specification. See copyright notices of individual files for more details on copyright and licensing information.