perl取得系统时间/日期

例子

use strict;
use warnings;
use Time::localtime;
 
printf "Year is %d\n", localtime->year() + 1900;
printf "Day is %d\n", localtime->mday()  ;

参考

shells/program/perl/perl-time-localtime.txt · 最后更改: 2010/09/01 10:43 (外部编辑)
[unknown link type]到顶部
GNU Free Documentation License 1.3
京ICP备05034962号 Debian Driven by DokuWiki get firefox browser Recent changes RSS feed Valid XHTML 1.0