# Display time based on frames

**URL:** <https://forum.kirupa.com/t/display-time-based-on-frames/266834>\
**Category:** Uncategorized\
**Created:** [July 24, 2008, 7:04pm UTC](https://forum.kirupa.com/t/display-time-based-on-frames/266834 "2008-07-24T19:04:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![olympiakos7](https://avatars.discourse-cdn.com/v4/letter/o/278dde/32.png) [@olympiakos7](https://forum.kirupa.com/u/olympiakos7)\
**Post date:** [July 24, 2008, 7:04pm UTC](https://forum.kirupa.com/t/display-time-based-on-frames/266834/1 "2008-07-24T19:04:55Z")

</div>

I have a movie clip and i would like to display its duration in minutes and seconds. currently I am displaying the frames so it shows “frame 320 of 500” etc.  
I would like to figure out how many frames in the movie clip and convert it to time so in the end it will display: 1:23 / 3:00

```auto
frameNumber = "frame " + getProperty(movie, _currentframe) + " of " + getProperty(movie, _totalframes);
gotoAndPlay(_currentframe - 1);

```
