How to get the epoch timestamp in Perl? Posted on Mar 24, 2018 by Q A In QA In Perl, how to get the epoch timestamp, the number of seconds passed since the epoch? In Perl, to get the epoch time, call the time function: my $ts = time Example: $ perl -e 'print time . "n"' 1491473202 Read more: How to get the epoch timestamp in Python? How to get the epoch timestamp in PHP? How to get the epoch timestamp in Java? Getting Epoch Timestamp in C How to convert epoch timestamp to human readable date format in Python? How to get the epoch timestamp in Bash? How to convert epoch timestamp to human readable date format in Bash? How to get the epoch timestamp in Go lang?