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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"