Working with time zones
In the code example about the .NET release party, using a TimeOnly was not actually a good idea because the TimeOnly value did not include information about the 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 Table 7.4:
|
Member |
Description |
|
|
A |
|
|
A |