https://github.com/dahln/timezoner
A simple library to provide a list of time zones, providing an Id, Name, and Offset
https://github.com/dahln/timezoner
netstandard20 time timezone timezones zone zones
Last synced: about 2 months ago
JSON representation
A simple library to provide a list of time zones, providing an Id, Name, and Offset
- Host: GitHub
- URL: https://github.com/dahln/timezoner
- Owner: dahln
- License: mit
- Created: 2018-10-17T14:55:59.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-02-11T00:09:54.000Z (8 months ago)
- Last Synced: 2025-04-16T07:25:51.984Z (6 months ago)
- Topics: netstandard20, time, timezone, timezones, zone, zones
- Language: C#
- Homepage: https://www.nuget.org/packages/Timezoner/
- Size: 223 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/shadowlings/Timezoner/actions/workflows/dotnet-nuget.yml)
[](https://github.com/shadowlings/Timezoner/actions/workflows/azure-static-web-apps-zealous-island-09cfe4010.yml)# Timezoner
A simple library to provide a list of time zones, providing an Id, Name, and Offset.## Demo
See the TimeZoner in action: https://zealous-island-09cfe4010.azurestaticapps.net/. The demo is a Blazor app, but the libraries can be used in other 'non-web' applications as well.Why this project exists: TimeZoneInfo provides timezones that are available for a particular system. That list could change from system to system. I noticed a difference in the lists when getting timezones in a Windows environment and a Linux environment. Thanks to the ability of .NET Core to run on multiple platforms, I created this library to provide my applications consitent timezone data across platforms.
Methods:
- GetTimezones()
- GetTimezoneById(string id)
- GetOffsetAsTimeSpan(string id)
- GetOffsetAsTimeSpan(Timezone zone)Timezoner is available on Nuget: https://www.nuget.org/packages/Timezoner/