in reply to Comparing Dates and Reoccurance

Time::Simple lets you subtract two times, returning the difference in seconds. You can also search at specifying Time.