calculating difference of times
- From: Robert Huff <roberthuff@xxxxxxx>
- Date: Fri, 27 Jul 2012 08:55:18 -0400
Matthias Apitz writes:
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
I don't know if there's something already available. (Sorry -
never had this problem.)
If the format is fixed, then parsing it with awk is trivial.
After that, the math should be doable with "expr".
Robert Huff
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"
- References:
- calculating difference of times
- From: Matthias Apitz
- calculating difference of times
- Prev by Date: Re: On-access AV scanning
- Next by Date: Re: On-access AV scanning
- Previous by thread: calculating difference of times
- Next by thread: Re: calculating difference of times
- Index(es):