Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Hello71
· 6y ago · 0 comments
date -d @$1 +%Y-%m-%d
Comments
[–]
danappelxx
6y ago
$ date -R Gets you very close with fewer characters
[–]
Hello71
OP
6y ago
I mean, if you're not fixed on the output format, then date +%c.