Results 1 to 4 of 4
  1. #1
    vinsavant is offline Novice
    Windows Vista Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    20

    Time Zone Conversion

    I have a dataset that collects downtime minutes of internet service by an internet provider. This provider is on the U.S. East coast EST and has customers in England, India and Hong Kong.



    I need to create some type of query, calculated field, filter or parameter that allows the user after filtering to show events for their country to determine if the downtime event happened before or after their business hours, for example, 08:00 AM and 17:00 PM in the customer's time zone.

    Thank you for your help!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    I use a time zone converter. Each city,country has a timezone code, and the difference in UTC.
    google this table to get a full list.

    TimeZone desc UTC
    AKST Alaska Standard Time (AKST) -9
    ATC Atlantic Standard Time (ATC) -4
    CHST Chamorro Standard Time (CHST) +10 10
    CST Central Standard Time (CST) -6
    EST Eastern Standard Time (EST) -5

  3. #3
    vinsavant is offline Novice
    Windows Vista Access 2010 64bit
    Join Date
    Dec 2012
    Posts
    20
    Hi Ranman,

    Thank you for your reply. Can you describe how you coded this? I need all the help you can provide me.
    Thanks!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    The date/time is stored as the provider's EST?

    Need a table of customers with field for their TimeZone code. Query would include the data table, the customers table, and the timezone table. Calculation to convert from provider's EST to customer's local would be like:

    DateAdd("h", 5 + [UTC], [fieldname])

    However, that doesn't account for daylight savings switch which apparently India and Hong Kong don't observe so half of the year would require an additional hour adjustment for those locales, also the U.S. and England don't switch on same dates. This makes the conversion calculation complicated enough a VBA custom function may be needed.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 05-05-2017, 02:50 AM
  2. Conversion of Date/Time field from Access to SQL
    By Robert2150 in forum SQL Server
    Replies: 4
    Last Post: 10-02-2016, 01:37 PM
  3. Printing zone grey?
    By PM-AM in forum Access
    Replies: 1
    Last Post: 08-18-2015, 06:11 AM
  4. Time Conversion
    By jsevilla in forum Access
    Replies: 1
    Last Post: 01-23-2011, 02:01 PM
  5. Replies: 6
    Last Post: 01-04-2011, 05:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums