Skip to content

FastFinTech/FFT.TimeZoneList

Repository files navigation

FFT.TimeZoneList

Source code NuGet package

Provides hard-typed references to timezones. Works cross-platform thanks to internal use of the TimeZoneConverter package.

Also see the related FFT.TimeStamps project.

using FFT.TimeZoneList;
TimeZoneInfo _est = TimeZones.EasternStandardTime;

Also provides a Json converter for System.Text.Json serialization.

using System.Text.Json;
using System.Text.Json.Serialization;
using FFT.TimeZoneList;

var options = new JsonSerializerOptions(JsonSerializerDefaults.Web);
options.Converters.Add(TimeZoneJsonConverter.Instance);
var json = @"{""TimeZone"":""Eastern Standard Time""}";
var value = JsonSerializer.Deserialize<MyDTO>(json, options);

public class MyDTO
{
  public TimeZoneInfo TimeZone { get; set; }
}

About

Provides hard-typed references to timezones. Works cross-platform.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages