perl:日期转换(date->unixtime)

#!/usr/bin/perl
use Class::Date qw(date);
$unixtime = date("2002-03-03 10:06:54")->epoch;
print $unixtime ."\n";
$unixtime = date("2002-03-03 10:06");
print $unixtime ."\n";
posted @ 2007-08-14 15:50  盈盈的工作小纸条  阅读(1648)  评论(0编辑  收藏  举报