diff options
Diffstat (limited to 'mcs/class/System/System.Net/MonoHttpDate.cs')
-rw-r--r-- | mcs/class/System/System.Net/MonoHttpDate.cs | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/mcs/class/System/System.Net/MonoHttpDate.cs b/mcs/class/System/System.Net/MonoHttpDate.cs deleted file mode 100644 index e7ebfe419f5..00000000000 --- a/mcs/class/System/System.Net/MonoHttpDate.cs +++ /dev/null @@ -1,33 +0,0 @@ -//
-// System.Net.MonoHttpDate
-//
-// Author:
-// Lawrence Pit (loz@cable.a2000.nl)
-//
-
-using System;
-using System.Globalization;
-
-namespace System.Net
-{
- /// <summary>
- /// See RFC 2068 3.3.1
- /// </summary>
- internal class MonoHttpDate
- {
- private static readonly string rfc1123_date = "r";
- private static readonly string rfc850_date = "dddd, dd-MMM-yy HH:mm:ss G\\MT";
- private static readonly string asctime_date = "ddd MMM d HH:mm:ss yyyy";
- private static readonly string [] formats =
- new string [] {rfc1123_date, rfc850_date, asctime_date};
- private static readonly CultureInfo enUS = new CultureInfo("en-US", false);
-
- internal static DateTime Parse (string dateStr)
- {
- return DateTime.ParseExact (dateStr,
- formats,
- enUS,
- DateTimeStyles.AllowWhiteSpaces);
- }
- }
-}
\ No newline at end of file |