Anke
May 26, 2020, 11:47am
1
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)
14 Likes
Thank you for the little extension that reduces my app by a few blocks
1 Like
Anke
October 20, 2021, 5:23pm
3
I added a new version of this extension:
Here is a new version of my extension:
New blocks <a class="lightbox" href="https://community.appinventor.mit.edu/uploads/default/original/3X/6/4/6447cc78796c7e7865ca1cb90dcd2d8b830807a6.png" data-download-href="https://community.appinventor.mit.edu/uploads/default/6447cc78796c7e7865ca1cb90dcd2d8b830807a6" title="grafik">[grafik]</a>
[grafik]
Note:
If you do not use this (but the original version), you will get deviations when adding up …
1 Like
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
Wowww!! awesome!!
Thanks a lot Anke
1 Like
I would like to share my experience with the community.
Thank you again @Anke
1 Like
ABG
Split this topic
June 15, 2022, 8:04pm
11
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.
Anke
November 23, 2022, 10:23am
15
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?