# Milliseconds to HH:mm:ss function

**URL:** https://community.mp3tag.de/t/milliseconds-to-hhss-function/61607
**Category:** Web Sources Discussion
**Created:** [July 18, 2023, 10:39pm UTC](https://community.mp3tag.de/t/milliseconds-to-hhss-function/61607 "2023-07-18T22:39:08Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [July 19, 2023, 8:41pm UTC](https://community.mp3tag.de/t/milliseconds-to-hhss-function/61607/4 "2023-07-19T20:41:30Z")

</div>

This is now part of [Mp3tag v3.21b](https://community.mp3tag.de/t/455) as a new function `SayDuration` which is not limited to JSON-handling, but can also be used in other contexts.

It takes the current input, interprets it as a numerical value and outputs a formatted duration string. It assumes to get the input in seconds, but can be switched to milliseconds via the optional second parameter `"ms"`

`SayDuration "ms"`

---

_[View the full topic](https://community.mp3tag.de/t/milliseconds-to-hhss-function/61607)._
