1.bash $TZ="UTC+16" date 2.php $yesterday=date('ymd',date('U')-3600*24); 3.perl perl -e 'print scalar localtime(time-3600*24)' Perl中取得日期格式的几种方法: perl -e 'use POSIX; print strftime("%Y-%m-%d %H:%M:%S", localtime)' perl -e 'use HTTP::Date;print HTTP::Date::time2iso(time);' perl -e […]
Last comments