sumtime(1)                                             sumtime(1)


NAME
       sumtime  -  print  total  of  times from standard input on
       standard output.


SYNOPSIS
       sumtime [-hdur] [-w hours]


DESCRIPTION
       sumtime is a program to  calculate  the  total  number  of
       hours  or  days presented to sumtime on the standard input
       stream. The result  is  printed  to  the  standard  output
       stream.

       sumtime can be executed with the following options.

       -h   help screen,

       -d   print result in days (see -w option),

       -u   print result in hours (default),

       -r   round result to the hour or to the day,

       -wx  set  number  of  working hours in a day to x; default
            8:00 (see -d option).  Option -w implies option -d. x
            can be specified as 1h, 23m, 1h23m and 1:23.


DIAGNOSTICS
       sumtime can return the following exit values:

       0  success:  program  execution has been successfully com-
          pleted,

       1  error: an invalid option or option value was specified,
          or invalid input was encountered.


SEE ALSO
       prjtime(1).


EXAMPLE
       awk '/^[0-9]/{print $1}' 19950102.dat | sumtime


AUTHOR
       M.J. Moene







14 Mar 1995Elektronische Afdeling, Huygens Laboratorium         1