Share via


FromTicks Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns a TimeSpan that represents a specified time, where the specification is in units of ticks.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Shared Function FromTicks ( _
    val As Long _
) As TimeSpan
public static TimeSpan FromTicks(
    long val
)
public:
static TimeSpan FromTicks(
    long long val
)
static member FromTicks : 
        val:int64 -> TimeSpan 
public static function FromTicks(
    val : long
) : TimeSpan

Parameters

Return Value

Type: System. . :: . .TimeSpan
An object that represents val.

Remarks

This is a convenience method with the same behavior as the TimeSpan..::..TimeSpan(Int64) constructor.

.NET Framework Security

See Also

Reference

TimeSpan Structure

System Namespace