且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Perl 中将 Unix 时间戳转换为可读日期

更新时间:2023-01-22 11:44:48

您可以使用 本地时间.

You can use localtime for that.

my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime($unix_timestamp);