author | wenzelm |
Fri, 01 Sep 2000 17:54:58 +0200 | |
changeset 9789 | 7e5e6c47c0b5 |
parent 4450 | 2c64ce912684 |
child 10555 | 2323ec838401 |
permissions | -rwxr-xr-x |
4436 | 1 |
#!/bin/bash |
2 |
# |
|
3 |
# $Id$ |
|
9789 | 4 |
# Author: Markus Wenzel, TU Muenchen |
5 |
# License: GPL (GNU GENERAL PUBLIC LICENSE) |
|
4436 | 6 |
# |
7 |
# showtime - print time. |
|
8 |
||
9789 | 9 |
TIME="$1" |
4436 | 10 |
|
11 |
SECS=$[ $TIME % 60 ] |
|
9789 | 12 |
[ $SECS -lt 10 ] && SECS="0$SECS" |
4450 | 13 |
|
4436 | 14 |
MINUTES=$[ ($TIME / 60) % 60 ] |
9789 | 15 |
[ $MINUTES -lt 10 ] && MINUTES="0$MINUTES" |
4450 | 16 |
|
4436 | 17 |
HOURS=$[ $TIME / 3600 ] |
18 |
||
19 |
echo "${HOURS}:${MINUTES}:${SECS}" |