3.7.2. Solution
If your date is already numeric, or in a rigid and easily parsed
format, use a regular expression (and possibly a hash mapping month
names to numbers) to extract individual day, month, and year values,
and then use the standard Time::Local module's
timelocal and timegm functions
to turn that into an Epoch seconds value.
use Time::Local;
# $date is "2003-02-13" (YYYY-MM-DD form).
($yyyy, $mm, $dd) = ($date =~ /(\d+)-(\d+)-(\d+)/);
# calculate epoch seconds at midnight on that day in this timezone
$epoch_seconds = timelocal(0, 0, 0, $dd, $mm-1, $yyyy);