#timestamp #mtime

filetime

Platform-agnostic accessors of timestamps in File metadata

23 releases

✓ Uses Rust 2018 edition

0.2.7 Aug 13, 2019
0.2.6 May 15, 2019
0.2.5 Apr 23, 2019
0.2.4 Nov 17, 2018
0.1.5 Jul 29, 2015

#3 in Windows APIs

Download history 35897/week @ 2019-04-30 35825/week @ 2019-05-07 41664/week @ 2019-05-14 39312/week @ 2019-05-21 42546/week @ 2019-05-28 45908/week @ 2019-06-04 46682/week @ 2019-06-11 42237/week @ 2019-06-18 41361/week @ 2019-06-25 35180/week @ 2019-07-02 36107/week @ 2019-07-09 35603/week @ 2019-07-16 36747/week @ 2019-07-23 38176/week @ 2019-07-30 38420/week @ 2019-08-06

169,835 downloads per month
Used in 558 crates (44 directly)

MIT/Apache

42KB
934 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

~610KB