From: "Max Lapan" Subject: Re: comparing dates Date: 11 Oct 2003 09:55:11 +0400 Sender: linux-admin-owner@vger.kernel.org Message-ID: <874qygtj28.fsf@home.homenet.ru> References: <20031010085408.GA11645@fede2.tumsan.fi> Mime-Version: 1.0 Return-path: In-Reply-To: <20031010085408.GA11645@fede2.tumsan.fi> List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: urgrue Cc: admin urgrue writes: > 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. see options -d and %s in date's man page -- Never trust anybody whose arm is bigger than your leg.