perl 获取目录时间
In Perl, how to get the epoch timestamp, the number of seconds passed since the epoch?
在Perl中 ,如何获取新纪元 时间戳 ,即自新纪元以来经过的秒数?
In Perl, to get the epoch time, call the time
function:
在Perl中 ,要获取纪元时间,请调用time
函数:
my $ts = time
Example:
例:
$ perl -e 'print time . "n"'
1491473202
Answered by dtivl.
dtivl回答。
翻译自: https://www.systutorials.com/how-to-get-the-epoch-timestamp-in-perl/
perl 获取目录时间