Unk*_*ant 2 perl datetime
我如何从 Perl 中的 DateTime 获取纳秒?
我尝试
say DateTime->from_epoch(epoch => time)->nanosecond; # 0 say DateTime->from_epoch(epoch => time)->strftime('%9N'); # 0
ike*_*ami 5
time返回自 UNIX 纪元开始以来的(整)秒数。Time::HiRestime提供了分辨率更好的版本。
time
归档时间:
4 年,4 月 前
查看次数:
145 次
最近记录:
3 年,6 月 前