showtime - print time.
authorwenzelm
Thu, 18 Dec 1997 19:12:22 +0100
changeset 4436 a3a683a8bcc6
parent 4435 41a7e4f0e957
child 4437 54f4fbc77c6c
showtime - print time.
lib/scripts/showtime
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/scripts/showtime	Thu Dec 18 19:12:22 1997 +0100
@@ -0,0 +1,13 @@
+#!/bin/bash
+#
+# $Id$
+#
+# showtime - print time.
+
+TIME=$1
+
+SECS=$[ $TIME % 60 ]
+MINUTES=$[ ($TIME / 60) % 60 ]
+HOURS=$[ $TIME / 3600 ]
+
+echo "${HOURS}:${MINUTES}:${SECS}"