C# Class RDumont.Dately.AbstractDateParser

Inheritance: IDateParser
Afficher le fichier Open project: rdumont/Dately

Méthodes publiques

Méthode Description
Parse ( string text ) : System.DateTime
TryParse ( string text, System.DateTime &result ) : bool

Méthodes protégées

Méthode Description
AbstractDateParser ( string culture, string name ) : System
GetDateType ( string text ) : DateType

Private Methods

Méthode 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 méthode

protected AbstractDateParser ( string culture, string name ) : System
culture string
name string
Résultat System

GetDateType() protected abstract méthode

protected abstract GetDateType ( string text ) : DateType
text string
Résultat DateType

Parse() public méthode

public Parse ( string text ) : System.DateTime
text string
Résultat System.DateTime

TryParse() public méthode

public TryParse ( string text, System.DateTime &result ) : bool
text string
result System.DateTime
Résultat bool