Tag Info

New answers tagged

0

$ s=12345678 $ printf '%d:%02d:%02d:%02d\n' $((s/86400)) $((s/3600%24)) $((s/60%60)) $((s%60)) 142:21:21:18 Converting seconds since epoch to a date and time: $ gdate -d @1234567890 '+%F %T' # GNU date 2009-02-14 01:31:30 $ date -r 1234567890 '+%F %T' # BSD date 2009-02-14 01:31:30



Top 50 recent answers are included