Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.TimeSpan Struct Reference

Public Member Functions

 TimeSpan (long ticks)
 
 TimeSpan (int hours, int minutes, int seconds)
 
 TimeSpan (int days, int hours, int minutes, int seconds)
 
 TimeSpan (int days, int hours, int minutes, int seconds, int milliseconds)
 
TimeSpan Add (TimeSpan ts)
 
int CompareTo (object? value)
 
int CompareTo (TimeSpan value)
 
TimeSpan Duration ()
 
override bool Equals ([NotNullWhen(true)] object? value)
 
bool Equals (TimeSpan obj)
 
override int GetHashCode ()
 
TimeSpan Negate ()
 
TimeSpan Subtract (TimeSpan ts)
 
TimeSpan Multiply (double factor)
 
TimeSpan Divide (double divisor)
 
double Divide (TimeSpan ts)
 
override string ToString ()
 
string ToString (string? format)
 
string ToString (string? format, IFormatProvider? formatProvider)
 
bool TryFormat (Span< char > destination, out int charsWritten, ReadOnlySpan< char > format=default(ReadOnlySpan< char >), IFormatProvider? formatProvider=null)
 
int CompareTo (T? other)
 
int CompareTo (T? other)
 
bool Equals (T? other)
 

Static Public Member Functions

static int Compare (TimeSpan t1, TimeSpan t2)
 
static TimeSpan FromDays (double value)
 
static bool Equals (TimeSpan t1, TimeSpan t2)
 
static TimeSpan FromHours (double value)
 
static TimeSpan FromMilliseconds (double value)
 
static TimeSpan FromMinutes (double value)
 
static TimeSpan FromSeconds (double value)
 
static TimeSpan FromTicks (long value)
 
static TimeSpan Parse (string s)
 
static TimeSpan Parse (string input, IFormatProvider? formatProvider)
 
static TimeSpan Parse (ReadOnlySpan< char > input, IFormatProvider? formatProvider=null)
 
static TimeSpan ParseExact (string input, string format, IFormatProvider? formatProvider)
 
static TimeSpan ParseExact (string input, string[] formats, IFormatProvider? formatProvider)
 
static TimeSpan ParseExact (string input, string format, IFormatProvider? formatProvider, TimeSpanStyles styles)
 
static TimeSpan ParseExact (ReadOnlySpan< char > input, ReadOnlySpan< char > format, IFormatProvider? formatProvider, TimeSpanStyles styles=TimeSpanStyles.None)
 
static TimeSpan ParseExact (string input, string[] formats, IFormatProvider? formatProvider, TimeSpanStyles styles)
 
static TimeSpan ParseExact (ReadOnlySpan< char > input, string[] formats, IFormatProvider? formatProvider, TimeSpanStyles styles=TimeSpanStyles.None)
 
static bool TryParse ([NotNullWhen(true)] string? s, out TimeSpan result)
 
static bool TryParse (ReadOnlySpan< char > s, out TimeSpan result)
 
static bool TryParse ([NotNullWhen(true)] string? input, IFormatProvider? formatProvider, out TimeSpan result)
 
static bool TryParse (ReadOnlySpan< char > input, IFormatProvider? formatProvider, out TimeSpan result)
 
static bool TryParseExact ([NotNullWhen(true)] string? input, [NotNullWhen(true)] string? format, IFormatProvider? formatProvider, out TimeSpan result)
 
static bool TryParseExact (ReadOnlySpan< char > input, ReadOnlySpan< char > format, IFormatProvider? formatProvider, out TimeSpan result)
 
static bool TryParseExact ([NotNullWhen(true)] string? input, [NotNullWhen(true)] string?[]? formats, IFormatProvider? formatProvider, out TimeSpan result)
 
static bool TryParseExact (ReadOnlySpan< char > input, [NotNullWhen(true)] string?[]? formats, IFormatProvider? formatProvider, out TimeSpan result)
 
static bool TryParseExact ([NotNullWhen(true)] string? input, [NotNullWhen(true)] string? format, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result)
 
static bool TryParseExact (ReadOnlySpan< char > input, ReadOnlySpan< char > format, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result)
 
static bool TryParseExact ([NotNullWhen(true)] string? input, [NotNullWhen(true)] string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result)
 
static bool TryParseExact (ReadOnlySpan< char > input, [NotNullWhen(true)] string?[]? formats, IFormatProvider? formatProvider, TimeSpanStyles styles, out TimeSpan result)
 
static TimeSpan operator- (TimeSpan t)
 
static TimeSpan operator- (TimeSpan t1, TimeSpan t2)
 
static TimeSpan operator+ (TimeSpan t)
 
static TimeSpan operator+ (TimeSpan t1, TimeSpan t2)
 
static TimeSpan operator* (TimeSpan timeSpan, double factor)
 
static TimeSpan operator* (double factor, TimeSpan timeSpan)
 
static TimeSpan operator/ (TimeSpan timeSpan, double divisor)
 
static double operator/ (TimeSpan t1, TimeSpan t2)
 
static bool operator== (TimeSpan t1, TimeSpan t2)
 
static bool operator!= (TimeSpan t1, TimeSpan t2)
 
static bool operator< (TimeSpan t1, TimeSpan t2)
 
static bool operator<= (TimeSpan t1, TimeSpan t2)
 
static bool operator> (TimeSpan t1, TimeSpan t2)
 
static bool operator>= (TimeSpan t1, TimeSpan t2)
 
static TimeSpan IAdditionOperators< TimeSpan, TimeSpan, TimeSpan >. operator+ (TimeSpan left, TimeSpan right)
 
static bool IComparisonOperators< TimeSpan, TimeSpan >. operator< (TimeSpan left, TimeSpan right)
 
static bool IComparisonOperators< TimeSpan, TimeSpan >. operator<= (TimeSpan left, TimeSpan right)
 
static bool IComparisonOperators< TimeSpan, TimeSpan >. operator> (TimeSpan left, TimeSpan right)
 
static bool IComparisonOperators< TimeSpan, TimeSpan >. operator>= (TimeSpan left, TimeSpan right)
 
static TimeSpan IDivisionOperators< TimeSpan, double, TimeSpan >. operator/ (TimeSpan left, double right)
 
static double IDivisionOperators< TimeSpan, TimeSpan, double >. operator/ (TimeSpan left, TimeSpan right)
 
static bool IEqualityOperators< TimeSpan, TimeSpan >. operator== (TimeSpan left, TimeSpan right)
 
static bool IEqualityOperators< TimeSpan, TimeSpan >. operator!= (TimeSpan left, TimeSpan right)
 
static TimeSpan IMultiplyOperators< TimeSpan, double, TimeSpan >. operator* (TimeSpan left, double right)
 
static TimeSpan IParseable< TimeSpan >. Parse (string s, IFormatProvider provider)
 
static bool IParseable< TimeSpan >. TryParse ([NotNullWhen(true)] string s, IFormatProvider provider, out TimeSpan result)
 
static TimeSpan ISpanParseable< TimeSpan >. Parse (ReadOnlySpan< char > s, IFormatProvider provider)
 
static bool ISpanParseable< TimeSpan >. TryParse (ReadOnlySpan< char > s, IFormatProvider provider, out TimeSpan result)
 
static TimeSpan ISubtractionOperators< TimeSpan, TimeSpan, TimeSpan >. operator- (TimeSpan left, TimeSpan right)
 
static TimeSpan IUnaryNegationOperators< TimeSpan, TimeSpan >. operator- (TimeSpan value)
 
static TimeSpan IUnaryPlusOperators< TimeSpan, TimeSpan >. operator+ (TimeSpan value)
 
static TResult operator+ (TSelf left, TOther right)
 
static bool operator< (TSelf left, TOther right)
 
static bool operator<= (TSelf left, TOther right)
 
static bool operator> (TSelf left, TOther right)
 
static bool operator>= (TSelf left, TOther right)
 
static bool operator== (TSelf left, TOther right)
 
static bool operator!= (TSelf left, TOther right)
 
static TResult operator/ (TSelf left, TOther right)
 
static TResult operator/ (TSelf left, TOther right)
 
static TResult operator* (TSelf left, TOther right)
 
static bool TryParse (ReadOnlySpan< char > s, IFormatProvider? provider, out TSelf result)
 
static bool TryParse ([NotNullWhen(true)] string? s, IFormatProvider? provider, out TSelf result)
 
static TResult operator- (TSelf left, TOther right)
 
static TResult operator- (TSelf value)
 
static TResult operator+ (TSelf value)
 

Static Public Attributes

const long TicksPerMillisecond = 10000L
 
const long TicksPerSecond = 10000000L
 
const long TicksPerMinute = 600000000L
 
const long TicksPerHour = 36000000000L
 
const long TicksPerDay = 864000000000L
 
static readonly TimeSpan Zero = new TimeSpan(0L)
 
static readonly TimeSpan MaxValue = new TimeSpan(long.MaxValue)
 
static readonly TimeSpan MinValue = new TimeSpan(long.MinValue)
 

Static Package Functions

static long TimeToTicks (int hour, int minute, int second)
 

Package Attributes

readonly long _ticks
 

Properties

long Ticks [get]
 
int Days [get]
 
int Hours [get]
 
int Milliseconds [get]
 
int Minutes [get]
 
int Seconds [get]
 
double TotalDays [get]
 
double TotalHours [get]
 
double TotalMilliseconds [get]
 
double TotalMinutes [get]
 
double TotalSeconds [get]
 
static TimeSpan IAdditiveIdentity< TimeSpan, TimeSpan >. AdditiveIdentity [get]
 
static TimeSpan IMinMaxValue< TimeSpan >. MinValue [get]
 
static TimeSpan IMinMaxValue< TimeSpan >. MaxValue [get]
 
static double IMultiplicativeIdentity< TimeSpan, double >. MultiplicativeIdentity [get]
 

Static Private Member Functions

static TimeSpan Interval (double value, double scale)
 
static TimeSpan IntervalFromDoubleTicks (double ticks)
 
static void ValidateStyles (TimeSpanStyles style, string parameterName)
 

Detailed Description

Definition at line 9 of file TimeSpan.cs.


The documentation for this struct was generated from the following file: