# Flv time countdown

**URL:** https://forum.kirupa.com/t/flv-time-countdown/213132
**Category:** Uncategorized
**Created:** [January 17, 2007, 5:25am UTC](https://forum.kirupa.com/t/flv-time-countdown/213132 "2007-01-17T05:25:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![saveth](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@saveth](https://forum.kirupa.com/u/saveth)
#### Post date: [January 17, 2007, 5:25am UTC](https://forum.kirupa.com/t/flv-time-countdown/213132/1 "2007-01-17T05:25:08Z")

</div>

I’m trying to figure out how to get the time remaining of an flv.

I currently can get the total time and the current time. Any ideas?

```auto

var totalHours:Number;
var totalMinutes:Number;
var totalSeconds:Number;
var hours:Number;
var minutes:Number;
var seconds:Number;

function videoStatus() {
   totalHours = Math.floor(duration/3600);
   totalMinutes = Math.floor(duration/60)-(totalHours*60);
   totalSeconds = Math.round(duration%60);
   hours = Math.floor(netS.time/3600);
   minutes = Math.floor(netS.time/60)-(hours*60);
   seconds = Math.round(netS.time%60);

   trace(totalHours + " hours: " + totalMinutes + " minutes: " + totalSeconds +" seconds");
   trace(hours + " hours: " + minutes + " minutes: " + seconds +" seconds");
}

```
