question

Iamanewmember-2831 avatar image
0 Votes"
Iamanewmember-2831 asked IoTGirl edited

Api Azure Time Zone

Is there some endpoint to get the timezones for an specific country? For example Spain -> Europe/Madrid and Atlantic/Canary ?

azure-maps
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Iamanewmember-2831 Welcome to Microsoft Q&A forums.

There is no API offered by Azure as such, but I have used a .Net Library called NodaTime for a similiar usecase and it works great.

 using NodaTime.TimeZones;
    
 var zones = TzdbDateTimeZoneSource.Default.ZoneLocations
                 .Where(x => x.CountryName == "India").AsQueryable();

If an answer is helpful, please click on 130616-image.png or upvote 130671-image.png which might help other community members reading this thread.

1 Vote 1 ·
rbrundritt avatar image rbrundritt KalyanChanumolu-MSFT ·

There is, Azure Maps has a time zone service: https://docs.microsoft.com/en-us/rest/api/maps/timezone

0 Votes 0 ·

1 Answer

rbrundritt avatar image
2 Votes"
rbrundritt answered

Azure Maps has a time zone service: https://docs.microsoft.com/en-us/rest/api/maps/timezone

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.