Convert any given time to epoch time in Perl
Hi,
Any idea in perl, how can I convert a date in the format "2016-11-20 12:42:40" to epoch time. Thanks. Ravi |
Hi Folks,
Just figured out.. Quote:
Ravi |
In the Perl language there are literally dozens of CPAN modules that can do anything you might imagine to do with dates and times.
(As noted below: some are built-in.) |
There's also Date::Calc if you need to further manipulate, compare, or calculate dates.
|
All times are GMT -5. The time now is 12:53 AM. |