# The Digital Clock Tutorial

**URL:** <https://forum.kirupa.com/t/the-digital-clock-tutorial/6874>\
**Category:** flash\
**Created:** [October 18, 2002, 2:42pm UTC](https://forum.kirupa.com/t/the-digital-clock-tutorial/6874 "2002-10-18T14:42:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![phorte](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@phorte](https://forum.kirupa.com/u/phorte)\
**Post date:** [October 18, 2002, 2:42pm UTC](https://forum.kirupa.com/t/the-digital-clock-tutorial/6874/1 "2002-10-18T14:42:30Z")

</div>

Its wrong… The tutorial clock is wrong… Check it out here… [http://www.kirupa.com/developer/actionscript/digital\_clock.asp](http://www.kirupa.com/developer/actionscript/digital_clock.asp) The am pm thing doesn’t work…when its a time after 12 oclcok the clock says its “am” and when its b4 12 is also says “am”. Is there anyway to fix this becasue i need the:  
_if (hours\<12) {  
}_  
script too work… at the moment it does what ever is in the if space… not the else… WHY??
