I have an application that uses a chrnometer and compute seconds.
How to convert the seconds (integer) in hh:mm:ss format for display (and sharing) in a string?
More generaly speaking do we have a “C” like sprintf() function with % format ?
I have an application that uses a chrnometer and compute seconds.
How to convert the seconds (integer) in hh:mm:ss format for display (and sharing) in a string?
More generaly speaking do we have a “C” like sprintf() function with % format ?
You can learn from this link @fbd38
http://ai2.appinventor.mit.edu/reference/components/sensors.html#Clock
Salman Dev
Salman,
I tried it but there is a problem with the TimeZone that creates an offset that we have to substract. This is a real convern if your application is supposed to run in different contries with different time zone.
I am looking for something simplest. Just convert any number (whatever the type) in hh:mm:ss string.
Regards
mey be you need extension you can check an extension here @fbd38
https://puravidaapps.com/extensions.php
Try this extension:
Thanks a lot !