cooperlegend Active Member Licensed User Longtime User Jun 9, 2015 #1 I am getting a strange calculation with the new 5.00 release of B4A DateTime.TimeFormat = "HH:mm" Log(DateTime.Time(60*60*1000)) gives me "02:00"
I am getting a strange calculation with the new 5.00 release of B4A DateTime.TimeFormat = "HH:mm" Log(DateTime.Time(60*60*1000)) gives me "02:00"
thedesolatesoul Expert Licensed User Longtime User Jun 9, 2015 #2 What does DateTime.TimeZoneOffset return?
cooperlegend Active Member Licensed User Longtime User Jun 9, 2015 #3 "1" Ah, OK, so I need to take away British Summertime offset to get number of hours, thanks
Erel B4X founder Staff member Licensed User Longtime User Jun 9, 2015 #4 DateTime.Date / Time should only be used with specific time instances (February 05, 1990 14:55). Not with periods. You should instead use the code posted here: https://www.b4x.com/android/forum/threads/converting-seconds-in-hh-mm-ss.36264/#post-212804
DateTime.Date / Time should only be used with specific time instances (February 05, 1990 14:55). Not with periods. You should instead use the code posted here: https://www.b4x.com/android/forum/threads/converting-seconds-in-hh-mm-ss.36264/#post-212804