Get The Modification Time Of A File In Epoch Seconds In Rust
I use epoch seconds for tracking when files change in my blog engine. There's a built-in std::fs::Metadata struct^md^^ that provides access to the time via a `.modified()`rust` call. That returns a SystemTime^st^^ which takes a little extra work to turn into an integer. This is what that looks like:
Code
use fs;
use UNIX_EPOCH;
It's a few hoops but it get you there.
References
-
-
-
After kicking around on the docs for an hour this is where I finally found the full answer for how to pull this off