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: | 794 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 134:32:59 |
| Calls: | 13,179 |
| Calls today: | 2 |
| Files: | 15,481 |
| Messages: | 6,578,941 |
| Posted today: | 2 |