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

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 »

@>-> ---

There's no format code for zone offset?
https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

A small z should provide the offset

There is a long discussion on this problem here.

1 Like

Here's a recursive blocks only approach.
You have to divide milliseconds by 1000 and round on your way into the function.


hh_mm_ss.aia (2.4 KB)

Sample run

1 Like