lib/scripts/showtime
changeset 4436 a3a683a8bcc6
child 4450 2c64ce912684
equal deleted inserted replaced
4435:41a7e4f0e957 4436:a3a683a8bcc6
       
     1 #!/bin/bash
       
     2 #
       
     3 # $Id$
       
     4 #
       
     5 # showtime - print time.
       
     6 
       
     7 TIME=$1
       
     8 
       
     9 SECS=$[ $TIME % 60 ]
       
    10 MINUTES=$[ ($TIME / 60) % 60 ]
       
    11 HOURS=$[ $TIME / 3600 ]
       
    12 
       
    13 echo "${HOURS}:${MINUTES}:${SECS}"