Email or username:

Password:

Forgot your password?
8 comments
Aurochs

@geerlingguy Oh man! I remember using multidimensional Netcdf files in which the time unit was "seconds since 1970" XD.

rusty

@geerlingguy

See also retr0.id/stuff/2038/, where when all the hands meet at the bottom, the Unix clock jumps back to 13 December 1901, at 20:45:52 UTC, which is far too close to where a number of our assorted politicians seem to think we should be.

Joe Wein

@geerlingguy

$ cat /usr/local/bin/when
#!/bin/bash
if [ -z "$(echo "$1" | egrep "^[0-9]{10,19}$")" ]; then
echo "Usage: $0 epoch" 1>&2
exit 1
fi

t=${1:0:10}
nano=${1:10}

date -d @$t "+%Y-%m-%d %H:%M:%S"

Go Up