W3cubDocs

/Haxe C#

TimeSpan

package cs.system

extends ValueType

implements IComparable, IComparable_1<TimeSpan>, IEquatable_1<TimeSpan>

Available on cs

Constructor

new (ticks:Int64)

new (days:Int, hours:Int, minutes:Int, seconds:Int, milliseconds:Int)

new (days:Int, hours:Int, minutes:Int, seconds:Int)

new (hours:Int, minutes:Int, seconds:Int)

Variables

read only Days:Int

read only Hours:Int

read only Milliseconds:Int

read only Minutes:Int

read only Seconds:Int

read only Ticks:Int64

read only TotalDays:Float

read only TotalHours:Float

read only TotalMilliseconds:Float

read only TotalMinutes:Float

read only TotalSeconds:Float

Methods

Add (ts:TimeSpan):TimeSpan

CompareTo (value:Dynamic):Int

CompareTo (value:TimeSpan):Int

Duration ():TimeSpan

Negate ():TimeSpan

Subtract (ts:TimeSpan):TimeSpan

Static variables

static read only MaxValue:TimeSpan

static read only MinValue:TimeSpan

static read only TicksPerDay:Int64

static read only TicksPerHour:Int64

static read only TicksPerMillisecond:Int64

static read only TicksPerMinute:Int64

static read only TicksPerSecond:Int64

static read only Zero:TimeSpan

Static methods

static Compare (t1:TimeSpan, t2:TimeSpan):Int

static FromDays (value:Float):TimeSpan

static FromHours (value:Float):TimeSpan

static FromMilliseconds (value:Float):TimeSpan

static FromMinutes (value:Float):TimeSpan

static FromSeconds (value:Float):TimeSpan

static FromTicks (value:Int64):TimeSpan

static Parse (s:String):TimeSpan

static TryParse (s:String, result:Out<TimeSpan>):Bool

static _Equals (t1:TimeSpan, t2:TimeSpan):Bool

static op_Addition (t1:TimeSpan, t2:TimeSpan):TimeSpan

static op_Equality (t1:TimeSpan, t2:TimeSpan):Bool

static op_GreaterThan (t1:TimeSpan, t2:TimeSpan):Bool

static op_GreaterThanOrEqual (t1:TimeSpan, t2:TimeSpan):Bool

static op_Inequality (t1:TimeSpan, t2:TimeSpan):Bool

static op_LessThan (t1:TimeSpan, t2:TimeSpan):Bool

static op_LessThanOrEqual (t1:TimeSpan, t2:TimeSpan):Bool

static op_Subtraction (t1:TimeSpan, t2:TimeSpan):TimeSpan

static op_UnaryNegation (t:TimeSpan):TimeSpan

static op_UnaryPlus (t:TimeSpan):TimeSpan

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/cs/system/TimeSpan.html