# My Clock Won't Count Down?

**URL:** <https://forum.kirupa.com/t/my-clock-wont-count-down/214413>\
**Category:** Uncategorized\
**Created:** [January 28, 2007, 8:23pm UTC](https://forum.kirupa.com/t/my-clock-wont-count-down/214413 "2007-01-28T20:23:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![downtheyfall](https://avatars.discourse-cdn.com/v4/letter/d/43a26b/32.png) [@downtheyfall](https://forum.kirupa.com/u/downtheyfall)\
**Post date:** [January 28, 2007, 8:23pm UTC](https://forum.kirupa.com/t/my-clock-wont-count-down/214413/1 "2007-01-28T20:23:30Z")

</div>

I used the tutorial, but my clock still won’t count down …any help? suggestions???  
here’s the script, it is just like on the tutorial…Help !

\_root.onEnterFrame + function() {  
var myDate = new Date();  
var myHours = myDate.getHours();  
var myMinutes = myDate.getMinutes();  
var mySeconds = myDate.getSeconds();  
var AmPm;  
if (myHours \< 12){  
AmPm = “AM”;  
}  
else  
{  
AmPm = “PM”;  
}  
if (myHours == 0) {  
myHours = 12;  
}  
if (myHours \> 12) {  
myHours = myHours - 12;  
}  
if (myHours \<10) {  
myHours = “0” + myhours;  
}  
if (myMinutes \< 10) {  
myMinutes = “0” + myMinutes;  
}  
if (mySeconds \< 10) {  
mySeconds = “0” + mySeconds;  
}  
time\_txt.text = myHours + “:” + myMinutes + “:” + mySeconds + " " + AmPm;  
}
