It’s probably easiest to use POSIX::strptime in your case.
Makeshifts last the longest.
In reply to Re: From a date to epoch seconds by Aristotle in thread From a date to epoch seconds by jeanluca