Time format - Millis to [HH:mm:ss] - [days + HH:mm:ss] - [HH:mm] - [mm:ss] etc

Here is an extension to format the time / duration (millis) in different ways:
→ [HH:mm:ss] → [days + HH:mm:ss], → [HH:mm] → [mm:ss] → [HH:mm:ss:S] → [HH:mm:ss:SS] → [HH:mm:ss:SSS] etc.

Version 1 (July 20, 2020):
TFormat.aix (5.5 KB)

Version 2 (Oct 20, 2021):
TFormat2.aix (5.7 KB)

New blocks

This is asked very often and always requires a lot of questions / answers and posts in the forum.
Hence this extension (some of it can also be implemented with the on-board methods):


But I want to simplify it:


Thx a lot! After years finally a very simple way. Very helpful!

1 Like

A simple question:
Is what way is it different from Clock component? :thinking:

Look at my example blocks (the greyed out), then you will see it.

A simple answer:
It is not possible to correctly format the duration with the Clock component.

My DateTools extension solves this issue:


No, it’s not a problem to get the right values (for hours, min, sec), but it’s about formatting the duration correctly, e.g. in this format: [HH:mm:ss] → 01:00:00.


how to make this type of select list item index

You mean this?

ok thank you friend

1 Like

I added a new version of this extension:
TFormat2.aix (5.7 KB)


Thank you for your extension. This was something I needed.

1 Like