# length in minutes

**URL:** https://community.mp3tag.de/t/length-in-minutes/2268
**Category:** General Discussion
**Created:** [September 7, 2005, 7:42am UTC](https://community.mp3tag.de/t/length-in-minutes/2268 "2005-09-07T07:42:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![milka](https://community.mp3tag.de/user_avatar/community.mp3tag.de/milka/32/55_2.png) [@milka](https://community.mp3tag.de/u/milka)
#### Post date: [September 7, 2005, 7:42am UTC](https://community.mp3tag.de/t/length-in-minutes/2268/1 "2005-09-07T07:42:15Z")

</div>

Hi Florian,

can you write two placeholders for length in minutes: %\_length\_minutes% and %\_total\_time\_minutes%?

Like length in seconds:  
%\_length\_seconds% Length (in seconds)  
%\_total\_time\_raw% Total playling time in seconds

It will be very useful for my exports.

Please reply to me, thanks.

~ milka

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [September 7, 2005, 8:53am UTC](https://community.mp3tag.de/t/length-in-minutes/2268/2 "2005-09-07T08:53:20Z")

</div>

Nope, I won't add those. You can calculate this on the fly using Mp3tag's scripting functions.

Regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![Tarkus\_the\_Maverick](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/t/c4cdca/32.png) [@Tarkus\_the\_Maverick](https://community.mp3tag.de/u/Tarkus_the_Maverick)
#### Post date: [February 29, 2020, 8:19am UTC](https://community.mp3tag.de/t/length-in-minutes/2268/3 "2020-02-29T08:19:51Z")

</div>

$div(%length%,60000):$sub($div(%length%,1000),$mul($div(%length%,60000),60))

The above code will show the time in format (m:ss).  
For example length is: 452026 (1/1000 seconds)  
The result will be: 7:32 (minutes:seconds)
