#timestamp #mtime

filetime

Platform-agnostic accessors of timestamps in File metadata

23 releases

✓ Uses Rust 2018 edition

0.2.6 May 15, 2019
0.2.4 Nov 17, 2018
0.2.1 May 3, 2018
0.2.0 Mar 28, 2018
0.1.5 Jul 29, 2015

#1 in #timestamp

Download history 29294/week @ 2019-01-30 32769/week @ 2019-02-06 32639/week @ 2019-02-13 33241/week @ 2019-02-20 37047/week @ 2019-02-27 34569/week @ 2019-03-06 35201/week @ 2019-03-13 31022/week @ 2019-03-20 32059/week @ 2019-03-27 36441/week @ 2019-04-03 37634/week @ 2019-04-10 31251/week @ 2019-04-17 39153/week @ 2019-04-24 35828/week @ 2019-05-01 36369/week @ 2019-05-08

149,078 downloads per month
Used in 485 crates (42 directly)

MIT/Apache

38KB
824 lines

filetime

Build Status Build status

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

~602KB