Here’s a command that produces date/time numbers reminiscent of “stardates”: days (and fractions of a day) since 00:00:00 1-Jan-1970
UTC,
aka the Unix epoch.
ldo@theon:~> bc <<<"scale = 1; $(date +%s) / 86400"
19769.9
At one point I was using this for version numbers for my Android apps.
Heres a command that produces date/time numbers reminiscent of
stardates: days (and fractions of a day) since 00:00:00 1-Jan-1970 UTC,
aka the Unix epoch.
ldo@theon:~> bc <<<"scale = 1; $(date +%s) / 86400"
19769.9
At one point I was using this for version numbers for my Android apps.
"No. of days since the Epoch" is also used in (some?) /etc/shadow files
to indicate when a password expires, as well as when it was last set.
Here’s a command that produces date/time numbers reminiscent of “stardates”: days (and fractions of a day) since 00:00:00 1-Jan-1970 UTC, aka the Unix epoch.
ldo@theon:~> bc <<<"scale = 1; $(date +%s) / 86400"
19769.9
At one point I was using this for version numbers for my Android apps.
As a nerd, I'm stealing this :) cant wait to make my .bashrc more bloated!
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 299 |
Nodes: | 16 (2 / 14) |
Uptime: | 72:23:54 |
Calls: | 6,694 |
Calls today: | 4 |
Files: | 12,228 |
Messages: | 5,346,765 |
Posted today: | 1 |