List of TzId and TimeZoneName in iCal.Net for iCloud Caldav

1.6k Views Asked by At

1) What is the difference between TimeZoneName and TzId properties of IDateTime inside Ical.Net.Interfaces.DataTypes? 2) Where can I find complete list for both TimeZoneName and TzId ?

1

There are 1 best solutions below

2
rianjs On

What is the difference between TimeZoneName and TzId properties of IDateTime inside Ical.Net.Interfaces.DataTypes?

TimeZoneName returns the value of TzId. It's a historical artifact; I consider it deprecated. I may remove it at some point.

Where can I find complete list for both TimeZoneName and TzId

TzId is a mutable property, but assigned values should represent one of the time zones available in NodaTime, which ical.net uses under the hood. These are the tzdb (IANA), BCL (Windows) and serialization databases.

If you want to enumerate all of the values in each time zone database, have a look at this gist for inspiration. (Additional questions about NodaTime should be asked separately. NodaTime internals have nothing to do with ical.net.)