fairly simple and probably unreliable cross-platform way to determine when the host's OS was installed.
Find a file
2026-05-26 11:46:09 +02:00
src actually make the windows method open the registry key as read only so it works. 2026-05-26 11:46:09 +02:00
Cargo.toml oops 2026-05-16 21:53:35 +02:00
license.txt Add readme, add license 2026-05-16 02:54:14 +02:00
readme.md edit readme pt2 2026-05-16 03:03:05 +02:00

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.

License: GPL v2

Made with Profound Hatred™

Want to improve my code??? Fork it & Open a pull request.

(Additions must remain GPL v2)