<?xml version="1.0" encoding="windows-1252"?>
<node id="586" title="How can I compare two dates and find the difference?" created="1999-10-07 20:20:52" updated="2005-08-15 09:26:33">
<type id="834">
perlfaq nodetype</type>
<author id="519">
faq_monk</author>
<data>
<field name="doctext">


&lt;P&gt;
If you're storing your dates as epoch seconds then simply subtract one from the other. If you've got a structured date (distinct year, day, month, hour, minute, seconds values) then use one of the Date::Manip and Date::Calc modules from 
&lt;FONT SIZE=-1&gt;CPAN.&lt;/FONT&gt;

&lt;P&gt;
</field>
</data>
</node>
