TimeUtils.ToRfc2822 method
Version 1.1.28
.NET Framework 4.8
| Namespace | Skybrud.Essentials.Time |
|---|---|
| Assembly | Skybrud.Essentials.dll |
ToRfc2822(DateTime)
Static
Converts the specified timestamp to a string representation as specified by the
RFC 2822 format.
public static string ToRfc2822(DateTime timestamp)
Parameters
timestamp
DateTime
The timestamp to be converted.
Returns
The timestamp formatted as a RFC 822 date string.
ToRfc2822(DateTimeOffset)
Static
Converts the specified timestamp to a string representation as specified by the
RFC 2822 format.
public static string ToRfc2822(DateTimeOffset timestamp)
Parameters
timestamp
DateTimeOffset
The timestamp to be converted.
Returns
The timestamp formatted as a RFC 822 date string.
ToRfc2822(EssentialsDateTime)
Static
Converts the specified timestamp to a string representation as specified by the
RFC 2822 format.
public static string ToRfc2822(EssentialsDateTime timestamp)
Parameters
timestamp
EssentialsDateTime
The timestamp to be converted.
Returns
The timestamp formatted as a RFC 822 date string.