How do I use
So for
I can do it with
Apparently, in linux, it can be done with
date to convert a timestamp (seconds since 1970) to human readable?So for
TIMESTAMP=1760757792, for example:I can do it with
date -v-$((`date +%s` - ${TIMESTAMP}))S but this uses date twice and is not so elegant.Apparently, in linux, it can be done with
date -d @${TIMESTAMP}.