in reply to Comparing two dates and getting back difference in days

There's always good old Time::Local and hand parsing (untested):

#!/usr/bin/perl use Time::Local; my $now_gmt = time; my $then = "2004-01-14"; my ($ty,$tm,$td) = $then =~ /^(\d\d\d\d)-(\d\d)-(\d\d)$/; my $then_gmt = timegm(0,0,0,$td,$tm-1,$ty); my $diff_in_days = int(($now_gmt - $then_gmt) / 86400);