[讨论] 如何把一个秒数 (seconds since the epoch) 转成可读的时间格式?

[讨论] 如何把一个秒数 (seconds since the epoch) 转成可读的时间格式?

用 date +%s 可以把时间转成 seconds, 反过来怎么做呢?
引用:
-(dearvoid@LinuxEden:Forum)-(~/tmp)-
[$$=13858 $?=0] ; date
Tue Nov  6 11:11:33 CST 2007
-(dearvoid@LinuxEden:Forum)-(~/tmp)-
[$$=13858 $?=0] ; date +%s
1194318696
-(dearvoid@LinuxEden:Forum)-(~/tmp)-
[$$=13858 $?=0] ; bye
      
C, awk , Perl, Py等都有strftime呀      
got it:
引用:
-(dearvoid@LinuxEden:Forum)-(~/tmp)-
[$$=32125 $?=0] ; date
Tue Nov  6 14:33:56 CST 2007
-(dearvoid@LinuxEden:Forum)-(~/tmp)-
[$$=32125 $?=0] ; date +%s
1194330840
-(dearvoid@LinuxEden:Forum)-(~/tmp)-
[$$=32125 $?=0] ; date -d '1970-1-1 0:0:0 GMT + 1194330840 seconds'
Tue Nov  6 14:34:00 CST 2007
-(dearvoid@LinuxEden:Forum)-(~/tmp)-
[$$=32125 $?=0] ; bye