Priyank Kotiyal
Priyank Kotiyal

Reputation: 311

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

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 ?

Upvotes: 0

Views: 1908

Answers (1)

rianjs
rianjs

Reputation: 7954

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.)

Upvotes: 0

Related Questions