perl有兩個取得時間的函數:localtime和gmtime 兩個函數的用法一樣,區別在於localtime為取得本地時間,gmtime格林威治時間。 ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(ti