Skip to first unread message

MrGrady

unread,
May 4, 2016, 5:32:27 PM5/4/16
to MIT App Inventor Forum

Hello everyone, this is my first post in this forum.
In his free time playing with app inventor and noticed that it's hard to get time UTC/DST from the clock component.
I thought of this solution, it can work
all over the world?
Thank you!


Taifun

unread,
May 4, 2016, 6:24:33 PM5/4/16
to MIT App Inventor Forum
probably easier would be to use a parse procedure like in this example
Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

MrGrady

unread,
May 5, 2016, 2:53:20 AM5/5/16
to MIT App Inventor Forum
Thank you, finally a new block has been added for this purpose.
It is no longer necessary to use parse.

https://puravidaapps.com/images/snippets/2dayinyear.png

MrGrady

Ghica

unread,
May 5, 2016, 1:46:42 PM5/5/16
to MIT App Inventor Forum
To find the UTC, I found an easy solution by mistake:

I expected 00:00:00, but the 1 in front is because I live in UTC+1 I was told. I do not now what the value is if you live in UTC-6, but maybe it is easy to figure out.
Cheers, Ghica.

Taifun

unread,
May 5, 2016, 2:06:53 PM5/5/16
to MIT App Inventor Forum
you also can use the pattern Z, for all patterns see here https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html


Taifun

MrGrady

unread,
May 5, 2016, 3:12:54 PM5/5/16
to MIT App Inventor Forum
Holy spaghetti, I looked for the solution to this problem for months and now ... :)
Thanks again Ghica and Taifun
, I will apply one of the solutions as soon as possible in the new version of my app (EtnaLive!)
Reply all
Reply to author
Forward
0 new messages