Android Question Number of hours east or west of Greenwich England

Discussion in 'Android Questions' started by rleiman, Feb 18, 2018.

  1. rleiman

    rleiman Well-Known Member Licensed 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.
     
  2. MarkusR

    MarkusR Well-Known Member Licensed User

  3. rleiman

    rleiman Well-Known Member Licensed 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.
     
  4. rleiman

    rleiman Well-Known Member Licensed User

    Hi Everyone,

    I just found out I could do it this way.

    Code:
    Dim intCurrentTimeZone As Int = DateTime.GetTimeZoneOffsetAt(DateTime.Now)
    I hope this helps others needing the same information.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice