Detailed Description

Parses a javascript date string (RFC 1123).

Static Package Functions

static DateTime Parse (string input)
 Parses a javascript date string. More...
 

Private Types

enum  ChunkClassification {
  ChunkClassification.Unknown, ChunkClassification.Date, ChunkClassification.Time, ChunkClassification.Year,
  ChunkClassification.Month, ChunkClassification.Zone, ChunkClassification.Number
}
 

Static Private Member Functions

static DateTime ParseUnstructured (string input)
 Parses an unstructured javascript date string. More...
 
static Dictionary< string, bool > PopulateDayOfWeekNames ()
 Constructs a HashSet containing the names of days of the week. More...
 
static Dictionary< string, int > PopulateMonthNames ()
 Constructs a dictionary containing the names of all the months and a mapping to the number of the month (1-12). More...
 
static Dictionary< string, int > PopulateTimeZones ()
 Constructs a dictionary containing the names of all the time zones and a mapping to the time zone offset (in hours). More...
 

Static Private Attributes

static Dictionary< string, bool > dayOfWeekNames
 
static Dictionary< string, int > monthNames
 
static Dictionary< string, int > timeZoneNames
 

Member Enumeration Documentation

Enumerator
Unknown 
Date 
Time 
Year 
Month 
Zone 
Number 

Member Function Documentation

static DateTime PowerUI.DateParser.Parse ( string  input)
inlinestaticpackage

Parses a javascript date string.

Parameters
inputThe string to parse as a date.
Returns
A date.
static DateTime PowerUI.DateParser.ParseUnstructured ( string  input)
inlinestaticprivate

Parses an unstructured javascript date string.

Parameters
inputThe string to parse as a date.
Returns
A date.
static Dictionary<string,bool> PowerUI.DateParser.PopulateDayOfWeekNames ( )
inlinestaticprivate

Constructs a HashSet containing the names of days of the week.

static Dictionary<string, int> PowerUI.DateParser.PopulateMonthNames ( )
inlinestaticprivate

Constructs a dictionary containing the names of all the months and a mapping to the number of the month (1-12).

static Dictionary<string, int> PowerUI.DateParser.PopulateTimeZones ( )
inlinestaticprivate

Constructs a dictionary containing the names of all the time zones and a mapping to the time zone offset (in hours).

Member Data Documentation

Dictionary<string,bool> PowerUI.DateParser.dayOfWeekNames
staticprivate
Dictionary<string, int> PowerUI.DateParser.monthNames
staticprivate
Dictionary<string, int> PowerUI.DateParser.timeZoneNames
staticprivate