From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Wimmer Subject: Re: comparing dates Date: Fri, 10 Oct 2003 12:25:21 +0200 Sender: linux-admin-owner@vger.kernel.org Message-ID: <20031010102521.GN7791@gx.nl> References: <20031010085408.GA11645@fede2.tumsan.fi> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <20031010085408.GA11645@fede2.tumsan.fi> List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: admin * urgrue wrote on 10/Oct/2003 - 11:54:08 : > anyone know an easy way to compare dates and display the difference? > difference doesnt have to be in date format, in fact it would be even > easier if it was just one unit, like "total diff in seconds" or > nanoseconds or whatever, doesnt matter. If you are comfortable with Perl you could use Date::Calc http://search.cpan.org/~stbey/Date-Calc-5.3/Calc.pod It does a great job with everything involving dates ... Greetz Stefan