C# Class RDumont.Dately.AbstractDateParser

Inheritance: IDateParser
ファイルを表示 Open project: rdumont/Dately

Public Methods

Method Description
Parse ( string text ) : System.DateTime
TryParse ( string text, System.DateTime &result ) : bool

Protected Methods

Method Description
AbstractDateParser ( string culture, string name ) : System
GetDateType ( string text ) : DateType

Private Methods

Method Description
ParseAgo ( string text ) : System.DateTime
ParseCustom ( string text ) : System.DateTime
ParseFromNow ( string text ) : System.DateTime
ParseSpecial ( string text ) : System.DateTime
TryParseCollection ( IEnumerable patternCollection, string text, DateTime>.Func parseResult ) : DateTime?

Method Details

AbstractDateParser() protected method

protected AbstractDateParser ( string culture, string name ) : System
culture string
name string
return System

GetDateType() protected abstract method

protected abstract GetDateType ( string text ) : DateType
text string
return DateType

Parse() public method

public Parse ( string text ) : System.DateTime
text string
return System.DateTime

TryParse() public method

public TryParse ( string text, System.DateTime &result ) : bool
text string
result System.DateTime
return bool