W3cubDocs

/Haxe C#

TimeSpan

package cs.system

extends ValueType

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

@:struct@:final@:libType@:csNative@:native("System.TimeSpan") Available on cs

Constructor

@:final @:overload new (ticks:Int64)

@:final @:overload new (days:Int, hours:Int, minutes:Int, seconds:Int, milliseconds:Int)

@:final @:overload new (days:Int, hours:Int, minutes:Int, seconds:Int)

@:final @:overload 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

@:final @:overload Add (ts:TimeSpan):TimeSpan

@:final @:overload CompareTo (value:Dynamic):Int

@:final @:overload CompareTo (value:TimeSpan):Int

@:final @:overload Duration ():TimeSpan

@:final @:overload Negate ():TimeSpan

@:final @:overload Subtract (ts:TimeSpan):TimeSpan

Static variables

@:readOnly static read only MaxValue:TimeSpan

@:readOnly static read only MinValue:TimeSpan

@:readOnly static read only TicksPerDay:Int64

@:readOnly static read only TicksPerHour:Int64

@:readOnly static read only TicksPerMillisecond:Int64

@:readOnly static read only TicksPerMinute:Int64

@:readOnly static read only TicksPerSecond:Int64

@:readOnly static read only Zero:TimeSpan

Static methods

@:final @:overload static Compare (t1:TimeSpan, t2:TimeSpan):Int

@:final @:overload static FromDays (value:Float):TimeSpan

@:final @:overload static FromHours (value:Float):TimeSpan

@:final @:overload static FromMilliseconds (value:Float):TimeSpan

@:final @:overload static FromMinutes (value:Float):TimeSpan

@:final @:overload static FromSeconds (value:Float):TimeSpan

@:final @:overload static FromTicks (value:Int64):TimeSpan

@:final @:overload static Parse (s:String):TimeSpan

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

@:native("Equals") @:final @:overload static _Equals (t1:TimeSpan, t2:TimeSpan):Bool

@:final @:overload static op_Addition (t1:TimeSpan, t2:TimeSpan):TimeSpan

@:final @:overload static op_Equality (t1:TimeSpan, t2:TimeSpan):Bool

@:final @:overload static op_GreaterThan (t1:TimeSpan, t2:TimeSpan):Bool

@:final @:overload static op_GreaterThanOrEqual (t1:TimeSpan, t2:TimeSpan):Bool

@:final @:overload static op_Inequality (t1:TimeSpan, t2:TimeSpan):Bool

@:final @:overload static op_LessThan (t1:TimeSpan, t2:TimeSpan):Bool

@:final @:overload static op_LessThanOrEqual (t1:TimeSpan, t2:TimeSpan):Bool

@:final @:overload static op_Subtraction (t1:TimeSpan, t2:TimeSpan):TimeSpan

@:final @:overload static op_UnaryNegation (t:TimeSpan):TimeSpan

@:final @:overload static op_UnaryPlus (t:TimeSpan):TimeSpan

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