src/packages/EmbedIO/Utilities/HttpDate.cs
/// <summary>
/// Attempts to parse a string containing a date and time, and possibly a time zone offset,
/// in one of the formats specified in <see href="https://tools.ietf.org/html/rfc850">RFC850</see>,
/// <see href="https://tools.ietf.org/html/rfc1123">RFC1123</see>,
/// and <see href="https://tools.ietf.org/html/rfc5322">RFC5322</see>,
/// or ANSI C's <see href="https://linux.die.net/man/3/asctime"><c>asctime()</c></see> format.
/// </summary>
/// <param name="str">The string to parse.</param>
/// <param name="result">When this method returns <see langword="true"/>,
/// a <see cref="DateTimeOffset"/> representing the parsed date, time, and time zone offset.
/// This parameter is passed uninitialized.</param>
/// <returns><see langword="true"/> if <paramref name="str"/> was successfully parsed;
/// otherwise, <see langword="false"/>.</returns>
Attempts to parse a string containing a date and time, and possibly a time zone offset,
in one of the formats specified in RFC850RFC1123RFC5322 format.
asctime()
Attempts to parse a string containing a date and time and possibly a time zone offset in one of the formats specified in RFC850RFC1123RFC5322 format . asctime ()
public static bool TryParse(string str, out DateTimeOffset result) =>
            DateTimeOffset.TryParseExact(
                str,
                DateFormats,
                DateTimeFormatInfo.InvariantInfo,
                DateTimeStyles.AllowWhiteSpaces | DateTimeStyles.AssumeUniversal,
                out result);
public static bool TryParse ( string str , out DateTimeOffset result ) => DateTimeOffset . TryParseExact ( str , DateFormats , DateTimeFormatInfo . InvariantInfo , DateTimeStyles . AllowWhiteSpaces | DateTimeStyles . AssumeUniversal , out result ) ;
Attempts to parse a string containing a date and time, and possibly a time zone offset,
in one of the formats specified in RFC850RFC1123RFC5322 format.
Attempts to parse a string containing a date and time and possibly a time zone offset in one of the formats specified in RFC850RFC1123RFC5322 format .
if  was successfully parsed;
otherwise, .
if was successfully parsed ; otherwise .
str
string
The string to parse.
The string to parse .
DateTimeOffset
out
result
When this method returns ,
a  representing the parsed date, time, and time zone offset.
This parameter is passed uninitialized.
When this method returns a representing the parsed date time and time zone offset . This parameter is passed uninitialized .