C# Class Jackett.Utils.DateTimeUtil

Afficher le fichier Open project: Jackett/Jackett

Méthodes publiques

Свойство Type Description
RFC1123ZPattern string
missingYearRegexp System.Text.RegularExpressions.Regex
missingYearRegexp2 System.Text.RegularExpressions.Regex
timeAgoRegexp System.Text.RegularExpressions.Regex
todayRegexp System.Text.RegularExpressions.Regex
tomorrowRegexp System.Text.RegularExpressions.Regex
yesterdayRegexp System.Text.RegularExpressions.Regex

Méthodes publiques

Méthode Description
DateTimeToUnixTimestamp ( System.DateTime dt ) : double
FromFuzzyTime ( string str, DateTimeRoutines format = DateTimeRoutines.DateTimeFormat.USA_DATE ) : System.DateTime
FromTimeAgo ( string str ) : System.DateTime
FromUnknown ( string str ) : System.DateTime
ParseDateTimeGoLang ( string date, string layout ) : System.DateTime
ParseTimeSpan ( string time ) : System.TimeSpan
UnixTimestampToDateTime ( double unixTime ) : System.DateTime
UnixTimestampToDateTime ( long unixTime ) : System.DateTime

Method Details

DateTimeToUnixTimestamp() public static méthode

public static DateTimeToUnixTimestamp ( System.DateTime dt ) : double
dt System.DateTime
Résultat double

FromFuzzyTime() public static méthode

public static FromFuzzyTime ( string str, DateTimeRoutines format = DateTimeRoutines.DateTimeFormat.USA_DATE ) : System.DateTime
str string
format Cliver.DateTimeRoutines
Résultat System.DateTime

FromTimeAgo() public static méthode

public static FromTimeAgo ( string str ) : System.DateTime
str string
Résultat System.DateTime

FromUnknown() public static méthode

public static FromUnknown ( string str ) : System.DateTime
str string
Résultat System.DateTime

ParseDateTimeGoLang() public static méthode

public static ParseDateTimeGoLang ( string date, string layout ) : System.DateTime
date string
layout string
Résultat System.DateTime

ParseTimeSpan() public static méthode

public static ParseTimeSpan ( string time ) : System.TimeSpan
time string
Résultat System.TimeSpan

UnixTimestampToDateTime() public static méthode

public static UnixTimestampToDateTime ( double unixTime ) : System.DateTime
unixTime double
Résultat System.DateTime

UnixTimestampToDateTime() public static méthode

public static UnixTimestampToDateTime ( long unixTime ) : System.DateTime
unixTime long
Résultat System.DateTime

Property Details

RFC1123ZPattern public_oe static_oe property

public static string RFC1123ZPattern
Résultat string

missingYearRegexp public_oe static_oe property

public static Regex,System.Text.RegularExpressions missingYearRegexp
Résultat System.Text.RegularExpressions.Regex

missingYearRegexp2 public_oe static_oe property

public static Regex,System.Text.RegularExpressions missingYearRegexp2
Résultat System.Text.RegularExpressions.Regex

timeAgoRegexp public_oe static_oe property

public static Regex,System.Text.RegularExpressions timeAgoRegexp
Résultat System.Text.RegularExpressions.Regex

todayRegexp public_oe static_oe property

public static Regex,System.Text.RegularExpressions todayRegexp
Résultat System.Text.RegularExpressions.Regex

tomorrowRegexp public_oe static_oe property

public static Regex,System.Text.RegularExpressions tomorrowRegexp
Résultat System.Text.RegularExpressions.Regex

yesterdayRegexp public_oe static_oe property

public static Regex,System.Text.RegularExpressions yesterdayRegexp
Résultat System.Text.RegularExpressions.Regex