Rfc822Utils.NormalizeTimeZone method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Time.Rfc822
Assembly Skybrud.Essentials.dll

NormalizeTimeZone(string)

Static

The RFC 822 specification describes a number of predefined time zones - eg. EST (Eastern Standard Time), UT (Universal Time) and GMT (Greenwich Mean Time) - which DateTimeOffset isn't able to parse on it's own, so we need to convert the time zone to an offset instead - eg +01:00.

public static string NormalizeTimeZone(string timeZone)

Parameters

timeZone String

The time zone value to be normalized.

Returns

The normalized time zone.