Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2012 14:34:30 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        freebsd-questions@freebsd.org
Subject:   calculating difference of times
Message-ID:  <20120727123429.GA2094@tiny.Sisis.de>

Next in thread | Raw E-Mail | Index | Archive | Help

Hello,

Do we have something (in the ports) to calculate easy the difference of
two times given as hh:mm - hh:mm? Some hack in bc(1) or something like
this? Well, I could translate the times into UNIX seconds of epoche,
build the diff and reconvert, but something more easy (and not in Perl
or C, just shell); thanks

	matthias
-- 
Matthias Apitz
e <guru@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20120727123429.GA2094>