perl time 时间函数
时间:2008-03-07 来源:nixer2007
1 把当前时间转换以秒计数。
# $hours, $minutes, and $seconds represent a time today,
# in the current time zone
use Time::Local;
$time = timelocal($seconds, $minutes, $hours, (localtime)[3,4,5]); timelocal()是在Time::Local里面.
# in the current time zone
use Time::Local;
$time = timelocal($seconds, $minutes, $hours, (localtime)[3,4,5]); timelocal()是在Time::Local里面.
相关阅读 更多 +
排行榜 更多 +