C# Class Jackett.Utils.DateTimeUtil

Exibir arquivo Open project: Jackett/Jackett

Public Properties

Property 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

Public Methods

Method 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 method

public static DateTimeToUnixTimestamp ( System.DateTime dt ) : double
dt System.DateTime
return double

FromFuzzyTime() public static method

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

FromTimeAgo() public static method

public static FromTimeAgo ( string str ) : System.DateTime
str string
return System.DateTime

FromUnknown() public static method

public static FromUnknown ( string str ) : System.DateTime
str string
return System.DateTime

ParseDateTimeGoLang() public static method

public static ParseDateTimeGoLang ( string date, string layout ) : System.DateTime
date string
layout string
return System.DateTime

ParseTimeSpan() public static method

public static ParseTimeSpan ( string time ) : System.TimeSpan
time string
return System.TimeSpan

UnixTimestampToDateTime() public static method

public static UnixTimestampToDateTime ( double unixTime ) : System.DateTime
unixTime double
return System.DateTime

UnixTimestampToDateTime() public static method

public static UnixTimestampToDateTime ( long unixTime ) : System.DateTime
unixTime long
return System.DateTime

Property Details

RFC1123ZPattern public_oe static_oe property

public static string RFC1123ZPattern
return string

missingYearRegexp public_oe static_oe property

public static Regex,System.Text.RegularExpressions missingYearRegexp
return System.Text.RegularExpressions.Regex

missingYearRegexp2 public_oe static_oe property

public static Regex,System.Text.RegularExpressions missingYearRegexp2
return System.Text.RegularExpressions.Regex

timeAgoRegexp public_oe static_oe property

public static Regex,System.Text.RegularExpressions timeAgoRegexp
return System.Text.RegularExpressions.Regex

todayRegexp public_oe static_oe property

public static Regex,System.Text.RegularExpressions todayRegexp
return System.Text.RegularExpressions.Regex

tomorrowRegexp public_oe static_oe property

public static Regex,System.Text.RegularExpressions tomorrowRegexp
return System.Text.RegularExpressions.Regex

yesterdayRegexp public_oe static_oe property

public static Regex,System.Text.RegularExpressions yesterdayRegexp
return System.Text.RegularExpressions.Regex