author | berghofe |
Fri, 31 Aug 2001 16:17:52 +0200 | |
changeset 11523 | 9a658fe20107 |
parent 10555 | 2323ec838401 |
child 14981 | e73f8140af78 |
permissions | -rwxr-xr-x |
10555 | 1 |
#!/usr/bin/env bash |
4436 | 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}" |