lib/scripts/showtime
author oheimb
Tue, 24 Mar 1998 15:57:18 +0100
changeset 4755 843b5f159c7e
parent 4450 2c64ce912684
child 9789 7e5e6c47c0b5
permissions -rwxr-xr-x
added cproj', and therefore extended prj tried to fix polymorphism problem for take_defs. A full solution will require significant changes.

#!/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}"