TimeUtils.NormalizeRfc822TimeZone method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Time |
---|---|
Assembly | Skybrud.Essentials.dll |
NormalizeRfc822TimeZone(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 NormalizeRfc822TimeZone(string timezone)
Parameters
timezone
String
The time zone value to be normalized.
Returns
The normalized time zone.