# Whats the time?

**URL:** <https://forum.kirupa.com/t/whats-the-time/232599>\
**Category:** flash\
**Created:** [July 16, 2007, 11:14am UTC](https://forum.kirupa.com/t/whats-the-time/232599 "2007-07-16T11:14:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brndn](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@brndn](https://forum.kirupa.com/u/brndn)\
**Post date:** [July 16, 2007, 11:14am UTC](https://forum.kirupa.com/t/whats-the-time/232599/1 "2007-07-16T11:14:18Z")

</div>

Hey  
this works well but I have one wee question. once the variable hits 60 seconds how do I tell it to display minutes:seconds.  
rather than just seconds??

var time\_Duration:Number;  
var total\_frames = \_root.\_totalframes;  
var the\_currentFrame =\_root.\_currentframe ;  
onEnterFrame = function(){  
var the\_currentFrame =\_root.\_currentframe ;  
time\_Duration = Math.floor(the\_currentFrame/30);  
trace(time\_Duration);  
}
