Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
use Time::Local;
sub getSecs {
my ($rawtime1, $rawtime2) = @_;
my ($rawyr1, $rawyr2, $rawmon1, $rawmon2, $rawday1, $rawday2, $rawhr1, $rawhr2, $rawmin1, $rawmin2, $rawsec1, $rawsec2, $epoch1, $epoch2);
($rawcal1, $rawclock1) = split(/ /, $rawtime1);
($rawcal2, $rawclock2) = split(/ /, $rawtime2);
($rawyr1, $rawmon1, $rawday1) = split(/-/, $rawcal1);
($rawyr2, $rawmon2, $rawday2) = split(/-/, $rawcal2);
($rawhr1, $rawmin1, $rawsec1) = split(/:/, $rawclock1);
($rawhr2, $rawmin2, $rawsec2) = split(/:/, $rawclock2);
$epoch1 = timelocal($rawsec1, $rawmin1, $rawhr1, $rawday1, $rawmon1-1, $rawyr1-1900);
$epoch2 = timelocal($rawsec2, $rawmin2, $rawhr2, $rawday2, $rawmon2-1, $rawyr2-1900);
return($epoch2 - $epoch1);
}