#!/usr/bin/perluse warnings;use diagnostics;use strict;use POSIX;print "time: ", time(),"\n";print "localtime: ", localtime(),"\n";print "gmttime: ", gmtime(),"\n";time: 1427087838localtime: 1817132321151810gmttime: 181752321151810
本文共 283 字,大约阅读时间需要 1 分钟。
#!/usr/bin/perluse warnings;use diagnostics;use strict;use POSIX;print "time: ", time(),"\n";print "localtime: ", localtime(),"\n";print "gmttime: ", gmtime(),"\n";time: 1427087838localtime: 1817132321151810gmttime: 181752321151810
转载于:https://www.cnblogs.com/IamThat/p/4359553.html