Crates.io | filetime |
lib.rs | filetime |
version | 0.2.25 |
source | src |
created_at | 2015-05-04 23:11:08.402484 |
updated_at | 2024-08-27 20:41:13.398704 |
description | Platform-agnostic accessors of timestamps in File metadata |
homepage | https://github.com/alexcrichton/filetime |
repository | https://github.com/alexcrichton/filetime |
max_upload_size | |
id | 2028 |
size | 68,575 |
A helper library for inspecting and setting the various timestamps of files in Rust. This library takes into account cross-platform differences in terms of where the timestamps are located, what they are called, and how to convert them into a platform-independent representation.
# Cargo.toml
[dependencies]
filetime = "0.2"
std::fs::Metadata
This library includes the ability to set this data, which std does not.
This library, when built with RUSTFLAGS=--cfg emulate_second_only_system
set, will return all times rounded down to the second. This emulates the behavior of some file systems, mostly HFS, allowing debugging on other hardware.
This project is licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Filetime by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.