Time Format Extension - 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 ] → etc.

This is asked very often and always requires a lot of questions / answers and posts in the forum.
(Last here: Creating a Chronometer - #17 by PizzaGuy07)

Hence this extension (some of it can also be implemented with the on-board methods, but I want to simplify it:):

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

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

15 Likes

Thank you for the little extension that reduces my app by a few blocks :wink:

1 Like

I added a new version of this extension:

2 Likes

Thanks!
I'm making clock app.

Hi Anke
can I ask you a question?
How can I change the description of the Time Format?
For example I would like to change the result "DDD days + HH:mm:ss" with "DDD giorni, HH ore, mm minuti, ss secondi" (...yes, in Italian language).

E.g. from "320 days + 18:51:34" to "320 giorni, 18 ore, 51 minuti, 34 secondi"
or similar as "giorni 320 e ore 18:51:34"

Is it possible?

Thank you in advance for your answer

Of course:

2 Likes

... or:

1 Like

1 Like

Wowww!! awesome!!
Thanks a lot Anke :heart_eyes: :heart_eyes:

1 Like


I would like to share my experience with the community.

Thank you again @Anke

1 Like

A post was split to a new topic: GetMillis help adding times

Hi @Anke,

Is it possible to convert YearsDaysHoursMinSec back to millis? Or do I just use:

Thank you.

It looks like something that would be worth adding to the extension at some point, considering the number of blocks required.

Why? That is not the purpose of the extension. Read the topic.
And by the way, there are blocks in the Clock component for that.

No worries. Just suggesting a broader purpose.

I'll probably be using the clock component.

Is there a way, using this extension, to have the time counting continue even after I close the stopwatch app, when I open it it continues to count until I decide to stop and reset it, so that it counts?

I am very grateful for this extension. :pray::pray::pray:

It adds a huge value to the clock functions! And I have used it a lot in my projects.

Nevertheless, I had a doubt...

At one point, my necessity was to multiply a time lapse * 4

I tried numerous combinations of 'make instant' along with the various possibilities of your extension ... but nothing solved this question. In the end, I ended up doing the account and creating the format manually ...

The question that does not want to silence is:

Is there any way simpler to get to this same result?!?

I will be grateful if you answer me :pray:

here is a solution with no extension needed:


Above blocks are draggable.

image

1 Like

Thank you so much for answering. Very kind of your part. :pray:

A very ingenious logic ... but I was imagined that there would be a simpler, more elegant and more concise form than that »

@>-> ---