PDA

View Full Version : Can someone give me a clock script that only gives the time?


esntric
03-20-2003, 07:48 AM
I want a clock that only shows the time. All of the scripts I've found give the day, date, time, and some the year.
I just want the time. It doesnt matter if it gives the AM/PM or not. =)
Any help would be appreciated. Perhaps even a suggestion for search criteria? =)

I'm sorry for troubling you guys with this.

glenngv
03-20-2003, 09:21 AM
simple...
<script>
var today = new Date();
document.write(today.getHours() + ":" + today.getMinutes());
</script>

the time is in military format (without am/pm).
put that in any place you want the time displayed.

esntric
03-20-2003, 10:30 AM
Yes, I knew it would be something simple, thank you very much. =)