Rfc822Utils Class

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Time.Rfc822
Assembly Skybrud.Essentials.dll
Visibility Public
Keywords Static
Inheritance Object

Static class for working with date and time according to the RFC 822 specification.

public static class Rfc822Utils { }

Methods

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.

Parse(string) (static)

Converts the specified rfc822 formatted date to a corresponding instance of DateTimeOffset .

Converts the specified timestamp to a string representation as specified by the RFC 822 format.

Converts the specified timestamp to a string representation as specified by the RFC 822 format.

Converts the specified timestamp to a string representation as specified by the RFC 822 format.

Converts the specified rfc822 formatted date to its DateTime equivalent and returns a value that indicates whether the conversion succeeded.

Converts the specified rfc822 formatted date to its DateTimeOffset equivalent and returns a value that indicates whether the conversion succeeded.