rleiman Well-Known Member Licensed User Longtime User Feb 18, 2018 #1 Hi Everyone, Is there a way using B4A to find out how many hours east or west of greenwich England i'm at based on the phone's GPS position? For example: Boston is 5 hours west. Thanks.
Hi Everyone, Is there a way using B4A to find out how many hours east or west of greenwich England i'm at based on the phone's GPS position? For example: Boston is 5 hours west. Thanks.
MarkusR Well-Known Member Licensed User Longtime User Feb 18, 2018 #2 maybe put this map into a 2d array. (360.0° x 180.0°) https://en.wikipedia.org/wiki/Coordinated_Universal_Time or maybe use the rotation speed of earth. or you can use google api. Upvote 0
maybe put this map into a 2d array. (360.0° x 180.0°) https://en.wikipedia.org/wiki/Coordinated_Universal_Time or maybe use the rotation speed of earth. or you can use google api.
rleiman Well-Known Member Licensed User Longtime User Feb 18, 2018 #3 Hi Markus, Not sure how to do any of that. I was hoping there was a B4A library that allows me to get that information. Upvote 0
Hi Markus, Not sure how to do any of that. I was hoping there was a B4A library that allows me to get that information.
rleiman Well-Known Member Licensed User Longtime User Feb 19, 2018 #4 Hi Everyone, I just found out I could do it this way. B4X: Dim intCurrentTimeZone As Int = DateTime.GetTimeZoneOffsetAt(DateTime.Now) I hope this helps others needing the same information. Upvote 0
Hi Everyone, I just found out I could do it this way. B4X: Dim intCurrentTimeZone As Int = DateTime.GetTimeZoneOffsetAt(DateTime.Now) I hope this helps others needing the same information.