Search code examples
dategnu-coreutils

What's the inverse of "date +%s"?


Is there something I can substitute for ?? to make this work?

> date +%s
1368817693

> date -d ?? 1368817693
Fri May 17...

Solution

  • Try this:

    date -d "1970-01-01 UTC 1368817693 seconds"