shell 实现cst转utc #!/bin/sh ## ##cst转utc ## time="2010-10-18 00:00:00" seconds=`date -d "$time" +%s` seconds_utc=`expr $seconds - 28800` time_utc=`date -d @$seconds_utc "+%Y-%m-%d %H:%M:%S"` echo $time_utc