Mono Class Library: System.TimeSpan Overview | Members

System.TimeSpan.FromTicks Method

Returns a TimeSpan that represents the specified number of ticks.

public static TimeSpan FromTicks (long value)

Parameters

value
A long that specifies the number of ticks with which the new TimeSpan is initialized.

Returns

A TimeSpan with a value of value.

Remarks

This method is equivalent to the TimeSpan(long) constructor.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0