Files
2026-06-04 11:42:34 +02:00

33 lines
906 B
C#

using System;
using System.Globalization;
namespace System.Net
{
// Token: 0x02000249 RID: 585
internal class MonoHttpDate
{
// Token: 0x060014DC RID: 5340 RVA: 0x00042E70 File Offset: 0x00041070
internal static DateTime Parse(string dateStr)
{
return DateTime.ParseExact(dateStr, MonoHttpDate.formats, CultureInfo.InvariantCulture, DateTimeStyles.AllowWhiteSpaces).ToLocalTime();
}
// Token: 0x04001191 RID: 4497
private static readonly string rfc1123_date = "r";
// Token: 0x04001192 RID: 4498
private static readonly string rfc850_date = "dddd, dd-MMM-yy HH:mm:ss G\\MT";
// Token: 0x04001193 RID: 4499
private static readonly string asctime_date = "ddd MMM d HH:mm:ss yyyy";
// Token: 0x04001194 RID: 4500
private static readonly string[] formats = new string[]
{
MonoHttpDate.rfc1123_date,
MonoHttpDate.rfc850_date,
MonoHttpDate.asctime_date
};
}
}