#timestamp #mtime

filetime

Platform-agnostic accessors of timestamps in File metadata

24 releases

✓ Uses Rust 2018 edition

0.2.8 Nov 11, 2019
0.2.6 May 15, 2019
0.2.4 Nov 17, 2018
0.2.1 May 3, 2018
0.1.5 Jul 29, 2015

#3 in Windows APIs

Download history 37506/week @ 2019-07-29 38816/week @ 2019-08-05 41421/week @ 2019-08-12 37727/week @ 2019-08-19 38112/week @ 2019-08-26 40451/week @ 2019-09-02 38460/week @ 2019-09-09 41451/week @ 2019-09-16 39169/week @ 2019-09-23 40662/week @ 2019-09-30 42072/week @ 2019-10-07 41802/week @ 2019-10-14 47855/week @ 2019-10-21 46150/week @ 2019-10-28 49109/week @ 2019-11-04

178,305 downloads per month
Used in 662 crates (46 directly)

MIT/Apache

42KB
934 lines

filetime

Documentation

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"

Advantages over using 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.

License

This project is licensed under either of

at your option.

Contribution

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.

Dependencies

~51KB