Android Question Number of hours east or west of Greenwich England

rleiman

Well-Known Member
Licensed User
Longtime User
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.
 

rleiman

Well-Known Member
Licensed User
Longtime User
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

rleiman

Well-Known Member
Licensed User
Longtime User
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
Top