{"id":13636978,"url":"https://github.com/sorairolake/nt-time","last_synced_at":"2025-04-11T04:42:40.142Z","repository":{"id":148076699,"uuid":"615970707","full_name":"sorairolake/nt-time","owner":"sorairolake","description":"A Windows file time library for Rust","archived":false,"fork":false,"pushed_at":"2025-04-07T10:05:10.000Z","size":616,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-04-11T04:42:33.341Z","etag":null,"topics":["date","rust","rust-lang","rust-library","time","windows"],"latest_commit_sha":null,"homepage":"https://docs.rs/nt-time","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sorairolake.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.adoc","contributing":"CONTRIBUTING.adoc","funding":null,"license":"LICENSES/Apache-2.0.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.adoc","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-03-19T08:21:50.000Z","updated_at":"2025-04-07T10:05:06.000Z","dependencies_parsed_at":"2023-05-19T02:15:30.881Z","dependency_job_id":"f1c592ee-39c9-429c-95a1-ccf8a89e727b","html_url":"https://github.com/sorairolake/nt-time","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorairolake%2Fnt-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorairolake%2Fnt-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorairolake%2Fnt-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sorairolake%2Fnt-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sorairolake","download_url":"https://codeload.github.com/sorairolake/nt-time/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248345281,"owners_count":21088242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["date","rust","rust-lang","rust-library","time","windows"],"created_at":"2024-08-02T00:01:08.746Z","updated_at":"2025-04-11T04:42:40.132Z","avatar_url":"https://github.com/sorairolake.png","language":"Rust","funding_links":[],"categories":["Libraries","Rust"],"sub_categories":["Date and time"],"readme":"\u003c!--\nSPDX-FileCopyrightText: 2023 Shun Sakai\n\nSPDX-License-Identifier: Apache-2.0 OR MIT\n--\u003e\n\n# nt-time\n\n[![CI][ci-badge]][ci-url]\n[![Version][version-badge]][version-url]\n![MSRV][msrv-badge]\n[![Docs][docs-badge]][docs-url]\n![License][license-badge]\n[![REUSE status][reuse-badge]][reuse-url]\n\n**nt-time** is a [Windows file time] library for [Rust].\n\nA Windows file time is a 64-bit unsigned integer value that represents the\nnumber of 100-nanosecond intervals that have elapsed since \"1601-01-01 00:00:00\nUTC\", and is used as timestamps such as [NTFS] and [7z]. Windows uses a file\ntime to record when an application creates, accesses, or writes to a file.\n\n\u003e [!IMPORTANT]\n\u003e Note that many environments, such as the [Win32 API], may limit the largest\n\u003e value of the file time to \"+30828-09-14 02:48:05.477580700 UTC\", which is\n\u003e equal to the largest value of a 64-bit signed integer type when represented\n\u003e as an underlying integer value. This is the largest file time accepted by the\n\u003e [`FileTimeToSystemTime`] function of the Win32 API.\n\n## Usage\n\nRun the following command in your project directory:\n\n```sh\ncargo add nt-time\n```\n\n### Crate features\n\n#### `chrono`\n\nEnables the [`chrono`] crate.\n\n#### `jiff`\n\nEnables the [`jiff`] crate.\n\n#### `large-dates`\n\nEnables the `large-dates` feature of the [`time`] crate.\n\n#### `rand`\n\nEnables the [`rand`] crate.\n\n#### `serde`\n\nEnables the [`serde`] crate.\n\n#### `serde-human-readable`\n\nAllows Serde representations to use a human-readable format. This implicitly\nenables the `serde` feature.\n\n#### `std`\n\nEnables features that depend on the standard library. This is enabled by\ndefault.\n\n### `no_std` support\n\nThis supports `no_std` mode. Disables the `default` feature to enable this.\n\n### Documentation\n\nSee the [documentation][docs-url] for more details.\n\n## Minimum supported Rust version\n\nThe minimum supported Rust version (MSRV) of this library is v1.85.0.\n\n## Source code\n\nThe upstream repository is available at\n\u003chttps://github.com/sorairolake/nt-time.git\u003e.\n\nThe source code is also available at:\n\n- \u003chttps://gitlab.com/sorairolake/nt-time.git\u003e\n- \u003chttps://codeberg.org/sorairolake/nt-time.git\u003e\n\n## Changelog\n\nPlease see [CHANGELOG.adoc].\n\n## Contributing\n\nPlease see [CONTRIBUTING.adoc].\n\n## License\n\nCopyright (C) 2023 Shun Sakai (see [AUTHORS.adoc])\n\nThis library is distributed under the terms of either the _Apache License 2.0_\nor the _MIT License_.\n\nThis project is compliant with version 3.3 of the [_REUSE Specification_]. See\ncopyright notices of individual files for more details on copyright and\nlicensing information.\n\n[ci-badge]: https://img.shields.io/github/actions/workflow/status/sorairolake/nt-time/CI.yaml?branch=develop\u0026style=for-the-badge\u0026logo=github\u0026label=CI\n[ci-url]: https://github.com/sorairolake/nt-time/actions?query=branch%3Adevelop+workflow%3ACI++\n[version-badge]: https://img.shields.io/crates/v/nt-time?style=for-the-badge\u0026logo=rust\n[version-url]: https://crates.io/crates/nt-time\n[msrv-badge]: https://img.shields.io/crates/msrv/nt-time?style=for-the-badge\u0026logo=rust\n[docs-badge]: https://img.shields.io/docsrs/nt-time?style=for-the-badge\u0026logo=docsdotrs\u0026label=Docs.rs\n[docs-url]: https://docs.rs/nt-time\n[license-badge]: https://img.shields.io/crates/l/nt-time?style=for-the-badge\n[reuse-badge]: https://img.shields.io/reuse/compliance/github.com%2Fsorairolake%2Fnt-time?style=for-the-badge\n[reuse-url]: https://api.reuse.software/info/github.com/sorairolake/nt-time\n[Windows file time]: https://docs.microsoft.com/en-us/windows/win32/sysinfo/file-times\n[Rust]: https://www.rust-lang.org/\n[NTFS]: https://en.wikipedia.org/wiki/NTFS\n[7z]: https://www.7-zip.org/7z.html\n[Win32 API]: https://learn.microsoft.com/en-us/windows/win32/\n[`FileTimeToSystemTime`]: https://learn.microsoft.com/en-us/windows/win32/api/timezoneapi/nf-timezoneapi-filetimetosystemtime\n[`time`]: https://crates.io/crates/time\n[`chrono`]: https://crates.io/crates/chrono\n[`jiff`]: https://crates.io/crates/jiff\n[`rand`]: https://crates.io/crates/rand\n[`serde`]: https://serde.rs/\n[CHANGELOG.adoc]: CHANGELOG.adoc\n[CONTRIBUTING.adoc]: CONTRIBUTING.adoc\n[AUTHORS.adoc]: AUTHORS.adoc\n[_REUSE Specification_]: https://reuse.software/spec-3.3/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsorairolake%2Fnt-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsorairolake%2Fnt-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsorairolake%2Fnt-time/lists"}