2 // System.Net.MonoHttpDate
\r
5 // Lawrence Pit (loz@cable.a2000.nl)
\r
9 using System.Globalization;
\r
11 namespace System.Net
\r
14 /// See RFC 2068 3.3.1
\r
16 internal class MonoHttpDate
\r
18 private static readonly string rfc1123_date = "r";
\r
19 private static readonly string rfc850_date = "dddd, dd-MMM-yy HH:mm:ss G\\MT";
\r
20 private static readonly string asctime_date = "ddd MMM d HH:mm:ss yyyy";
\r
21 private static readonly string [] formats =
\r
22 new string [] {rfc1123_date, rfc850_date, asctime_date};
\r
23 private static readonly CultureInfo enUS = new CultureInfo("en-US", false);
\r
25 internal static DateTime Parse (string dateStr)
\r
27 return DateTime.ParseExact (dateStr,
\r
30 DateTimeStyles.AllowWhiteSpaces);
\r