亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

Perl localtime時間函數(shù)的應用介紹

 更新時間:2013年02月08日 20:38:13   作者:  
Perl時間函數(shù)localtime的使用介紹,這里簡單的介紹下,更多請查看官方介紹

1. 一般使用:

@nowtime=localtime();
#($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime();
注意:
$mon+1,$year+1900;
$now_string = localtime;  # e.g., "Thu Oct 13 04:54:34 1994"

2.如果要把時間保存在數(shù)據(jù)庫中,可以先將其保存為字符串,然后讀出時對字符串再處理。

@nowtime=localtime();
$nowstring=join(',',@nowtime);
將$nowstring保存;
讀?。?BR>@nowtime=split(',',$nowstring);

更多內(nèi)容請參考:http://perldoc.perl.org/functions/localtime.html

相關文章

最新評論