http://www.perlmonks.org?node_id=626116


in reply to Using Date::Calc with an error log

For this type of application I'd skip Date::Calc, unless you need it for some other reason. Go with epoch seconds using localtime and Time::Local. You'll have a much easier time checking ranges down to the second.