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


in reply to Getting seconds from date

...and just to show you how easy it can be using a module (and the time() function):

use Date::Parse; print time - str2time( "2011-06-05 11:00:00" );