Noda Time
FromTicks Method (ticks)
NamespacesNodaTimeOffsetFromTicks(Int64)

[This is preliminary documentation and is subject to change.]

Creates a new offset from the given number of ticks, which may be negative.
Declaration Syntax
C#Visual BasicVisual C++
public static Offset FromTicks(
	long ticks
)
Public Shared Function FromTicks ( _
	ticks As Long _
) As Offset
public:
static Offset FromTicks(
	long long ticks
)
Parameters
ticks (Int64)
The number of ticks specifying the length of the new offset.
Return Value
An offset representing the given number of ticks, to the (truncated) millisecond.
Remarks
Offsets are only accurate to millisecond precision; the given number of ticks is simply divided by 10,000 to give the number of milliseconds - any remainder is truncated.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThe result of the operation is outside the range of Offset.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)