Skip to first unread message

KG

unread,
Apr 17, 2019, 10:19:03 AM4/17/19
to MIT App Inventor Forum

Hi all
I happen to work past midnight with the clock1.formatdatetime function with pattern "kk:mm:ss"and realize it returns time after midnight as 24:01:02 instead of 00:01:02

Any idea if this can be set to desired 00 hours when past midnight?
Thanks ahead.

Sten Jensby

unread,
Apr 17, 2019, 10:21:04 AM4/17/19
to MIT App Inventor Forum
hh:mm:ss could be a hint

Taifun

unread,
Apr 17, 2019, 3:36:08 PM4/17/19
to MIT App Inventor Forum
kk is hour in day (1-24)
HH is hour in day (0-23)
@Sten hh is Hour in am/pm (1-12)
so you might want to try HH:mm:ss

Taifun

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

KG

unread,
Apr 18, 2019, 5:55:53 AM4/18/19
to MIT App Inventor Forum
Thank you gents.

HH will work; thanks for heads up on this!
Reply all
Reply to author
Forward
0 new messages