lib/scripts/showtime
author wenzelm
Wed, 02 Aug 2000 19:40:14 +0200
changeset 9502 50ec59aff389
parent 4450 2c64ce912684
child 9789 7e5e6c47c0b5
permissions -rwxr-xr-x
adapted deriv;

#!/bin/bash
#
# $Id$
#
# showtime - print time.

TIME=$1

SECS=$[ $TIME % 60 ]
[ $SECS -lt 10 ] && SECS=0$SECS

MINUTES=$[ ($TIME / 60) % 60 ]
[ $MINUTES -lt 10 ] && MINUTES=0$MINUTES

HOURS=$[ $TIME / 3600 ]

echo "${HOURS}:${MINUTES}:${SECS}"