Open
Description
In the second code snippet of the TimeSpan structure section, the example output says the store is closed at 21:00 when the store closing time is 21:30 and there is no indication of the local timezone being different from the store timezone.
Suggested solution is one or both of the following:
- Print local timezone or offset in output to indicate whether it is different from the timezone or offset of the store
- If the timezone is supposed to be the same in the example, change the "Store is open at 21:00:00: False" line to True because the store closing time is defined as 21:30
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 7b64d1f3-174c-fffe-d2e6-59a0b62de797
- Version Independent ID: 832e5ebc-6fc0-e596-5827-51034a3f89ab
- Content: Choosing between DateTime, DateTimeOffset, TimeSpan, and TimeZoneInfo
- Content Source: docs/standard/datetime/choosing-between-datetime.md
- Product: dotnet
- Technology: dotnet-standard
- GitHub Login: @Thraka
- Microsoft Alias: adegeo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment