LTimeBase.ValueToTime Method (Int64)

Converts the timeValue (PlcOpen ticks) to TimeSpan

Namespace:  TwinCAT.PlcOpen
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

public static TimeSpan ValueToTime(
    long nanoseconds
)

Parameters

nanoseconds

Type: System.Int64
The time value.

Return Value

Type: TimeSpan

Reference

LTimeBase Class

ValueToTime Overload

TwinCAT.PlcOpen Namespace