Perl时间处理
time();返回當前UNIX時間
localtime(); 把UNIX時間變換為一般格式的時間
用法:($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime($unix_time);
$sec:秒
$min:分
$hour:時
$mday:日
$mon:月(0..11)
$year:年數(自1900年)
$wday:星期(0..6)
$yday:年內天數
$indst:是否是在daylight saving time.
$unix_time:一個unix時間,如留空則取當前時間.
timelocal();把本地時間變換為UNIX時間
用法:$unix_time=timelocal($sec,$min,$hour,$mday,$mon,$year);
$sec:秒 $min:分 $hour:時
$mday:日(1..31) $mon:月(0..11) $year:年數(如使用三位的年份為自1900年始)
2023年12月11日 03:36
백링크업체's SEO audits are a must-try! They revamped my site's SEO strategy effectively.
2023年12月14日 20:17
부천출장마사지has become an essential part of my self-care routine.
2023年12月26日 23:22
Connect with sports enthusiasts from around the world through 해외스포츠중계.
2023年12月27日 22:47
폰허브 looks amazing! I'll definitely give it a try.
2023年12月28日 04:02
일산휴게텔 offers a unique escape from the ordinary. It's a tranquil haven amidst the city's hustle and bustle.
2023年12月30日 18:29
Unlock the potential of streaming with 누누티비. Ad-free delight and a diverse content library await.
2024年1月08日 22:38
Discover the epitome of relaxation at 제주오피, where every visit promises quality massages, soothing ambiance, and satisfaction.