1. date 到 timestamp:
$ date -d '2009-12-01 23:20' +%s
1259680800
2. timestamp 到 date
$ date -d '1970-01-01 1259680800 sec utc'
Tue Dec 1 23:20:00 CST 2009
1. date 到 timestamp:
$ date -d '2009-12-01 23:20' +%s
1259680800
2. timestamp 到 date
$ date -d '1970-01-01 1259680800 sec utc'
Tue Dec 1 23:20:00 CST 2009