TimeUtils.ToRfc822 method

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

ToRfc822(DateTime)

Static

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

public static string ToRfc822(DateTime timestamp)

Parameters

timestamp DateTime

The timestamp to be converted.

Returns

The timestamp formatted as a RFC 822 date string.

ToRfc822(DateTimeOffset)

Static

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

public static string ToRfc822(DateTimeOffset timestamp)

Parameters

timestamp DateTimeOffset

The timestamp to be converted.

Returns

The timestamp formatted as a RFC 822 date string.

ToRfc822(EssentialsDateTime)

Static

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

public static string ToRfc822(EssentialsDateTime timestamp)

Parameters

timestamp EssentialsDateTime

The timestamp to be converted.

Returns

The timestamp formatted as a RFC 822 date string.