Working with time zones
In the code example about the King’s coronation, using a TimeOnly was not actually a good idea because the time-only value does not include information about time zone. It is only useful if you are in the correct time zone. TimeOnly is therefore a poor choice for an event. For events, we need to understand and handle time zones.
Understanding DateTime and TimeZoneInfo
The DateTime class has many useful members related to time zones, as shown in the following table:
|
Member |
Description |
|
|
A |
|
|
A |