# Customize output of total length to h m without seconds

**URL:** https://community.mp3tag.de/t/customize-output-of-total-length-to-h-m-without-seconds/58477
**Category:** Support
**Created:** [September 14, 2022, 5:28pm UTC](https://community.mp3tag.de/t/customize-output-of-total-length-to-h-m-without-seconds/58477 "2022-09-14T17:28:24Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Palladio](https://community.mp3tag.de/user_avatar/community.mp3tag.de/palladio/32/10154_2.png) [@Palladio](https://community.mp3tag.de/u/Palladio)
#### Post date: [September 14, 2022, 5:28pm UTC](https://community.mp3tag.de/t/customize-output-of-total-length-to-h-m-without-seconds/58477/1 "2022-09-14T17:28:24Z")

</div>

Is there a way to **change the format of the duration of the album** , that is, from this format **"02:32:39"** to this format **"02h 32m 39s"**?

Then remove the second value and remove the zero before the number to convert the result into this format : **"2h 32m"**

And that it does not display the seconds and only displays the hours and minutes like this **"02h 32m"**

And is there a way to remove the zero before the number so that the output is more readable? like this : **"2h 32m"**

---

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [September 14, 2022, 5:48pm UTC](https://community.mp3tag.de/t/customize-output-of-total-length-to-h-m-without-seconds/58477/2 "2022-09-14T17:48:45Z")

</div>

Looks like this will need to be a calculated display using the scripting functions and the existing %\_length% or %\_length\_seconds% information fields.

> [@length in minutes](https://community.mp3tag.de/t/length-in-minutes/2268):
>
> 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: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [September 14, 2022, 5:55pm UTC](https://community.mp3tag.de/t/customize-output-of-total-length-to-h-m-without-seconds/58477/3 "2022-09-14T17:55:39Z")

</div>

> [@Palladio](#):
>
> And that it does not display the seconds and only displays the hours and minutes like this **"02h 32m"**

What should happen to albums that are shorter than an hour?  
Then the place for "hour" would be reduced to just "h" and the seconds removed, so you see just "45m"?

as a prototype to play with:  
`$regexp($regexp(00:10:30,(.*?):(.*):.*,$1h $2m),0(\d),$1)`  
leads to 0h 10m

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:29pm UTC](https://community.mp3tag.de/t/customize-output-of-total-length-to-h-m-without-seconds/58477/4 "2026-02-09T12:29:55Z")

</div>


