LTimeBase.TimeToValue Method

Converts the Timespan to PlcOpen ticks.

Namespace:  TwinCAT.PlcOpen
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public static ulong TimeToValue(
    TimeSpan time
)

VB

Public Shared Function TimeToValue ( 
    time As TimeSpan
) As ULong

Parameters

time

Type: System.TimeSpan
The time.

Return Value

Type: UInt64

Reference

LTimeBase Class

TwinCAT.PlcOpen Namespace