author | paulson |
Mon, 24 Jan 2005 12:40:52 +0100 | |
changeset 15453 | 6318e634e6cc |
parent 14981 | e73f8140af78 |
permissions | -rwxr-xr-x |
10555 | 1 |
#!/usr/bin/env bash |
4436 | 2 |
# |
3 |
# $Id$ |
|
9789 | 4 |
# Author: Markus Wenzel, TU Muenchen |
4436 | 5 |
# |
6 |
# showtime - print time. |
|
7 |
||
9789 | 8 |
TIME="$1" |
4436 | 9 |
|
10 |
SECS=$[ $TIME % 60 ] |
|
9789 | 11 |
[ $SECS -lt 10 ] && SECS="0$SECS" |
4450 | 12 |
|
4436 | 13 |
MINUTES=$[ ($TIME / 60) % 60 ] |
9789 | 14 |
[ $MINUTES -lt 10 ] && MINUTES="0$MINUTES" |
4450 | 15 |
|
4436 | 16 |
HOURS=$[ $TIME / 3600 ] |
17 |
||
18 |
echo "${HOURS}:${MINUTES}:${SECS}" |