fairly simple and probably unreliable cross-platform way to determine when the host's OS was installed.
| src | ||
| Cargo.toml | ||
| license.txt | ||
| readme.md | ||
installtime
a very simple and very stupid way to get the install time of your host OS.
very likely broken, haven't tested any of the BSDs but the same command for macOS should work. (on NetBSD at least.)
Usage: get_time() returns either the unix epoch of the supposed creation date of the system, or 0 if it fails.
Made with Profound Hatred™
Want to improve my code??? Fork it & Open a pull request.
(Additions must remain GPL v2)