Beef Corlib
Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Protected Member Functions | Static Protected Attributes | Properties | List of all members
System.TimeSpan Struct Reference
Inheritance diagram for System.TimeSpan:
System.IFormattable

Public Member Functions

 TimeSpan (int64 ticks)
 
 TimeSpan (int hours, int minutes, int seconds)
 
 TimeSpan (int32 days, int32 hours, int32 minutes, int32 seconds)
 
 TimeSpan (int32 days, int32 hours, int32 minutes, int32 seconds, int32 milliseconds)
 
Result< TimeSpanNegate ()
 
override void ToString (String outStr)
 
void ToString (String outStr, String format)
 
void ToString (String outStr, String format, IFormatProvider formatProvider)
 

Static Public Member Functions

static Result< TimeSpanFromDays (double value)
 
static Result< TimeSpanFromHours (double value)
 
static Result< TimeSpanFromMilliseconds (double value)
 
static Result< TimeSpanFromMinutes (double value)
 
static Result< TimeSpanFromSeconds (double value)
 
static TimeSpan operator- (Self lhs, Self rhs)
 

Static Public Attributes

const int64 TicksPerMillisecond = 10000
 
const int64 TicksPerSecond = TicksPerMillisecond * 1000
 
const int64 TicksPerMinute = TicksPerSecond * 60
 
const int64 TicksPerHour = TicksPerMinute * 60
 
const int64 TicksPerDay = TicksPerHour * 24
 
static readonly TimeSpan Zero = TimeSpan(0)
 
static readonly TimeSpan MaxValue = TimeSpan(Int64.MaxValue)
 
static readonly TimeSpan MinValue = TimeSpan(Int64.MinValue)
 

Static Protected Member Functions

static Result< int64 > TimeToTicks (int hour, int minute, int second)
 

Static Protected Attributes

const int64 MaxSeconds = Int64.MaxValue / TicksPerSecond
 
const int64 MinSeconds = Int64.MinValue / TicksPerSecond
 
const int64 MaxMilliSeconds = Int64.MaxValue / TicksPerMillisecond
 
const int64 MinMilliSeconds = Int64.MinValue / TicksPerMillisecond
 
const int64 TicksPerTenthSecond = TicksPerMillisecond * 100
 

Properties

int64 Ticks [get]
 
int32 Days [get]
 
int32 Hours [get]
 
int32 Milliseconds [get]
 
int32 Minutes [get]
 
int32 Seconds [get]
 
double TotalDays [get]
 
double TotalHours [get]
 
double TotalMilliseconds [get]
 
double TotalMinutes [get]
 
double TotalSeconds [get]