TimeBase.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 long TimeToValue(
    TimeSpan time
)

VB

Public Shared Function TimeToValue ( 
    time As TimeSpan
) As Long

Parameters

time

Type: System.TimeSpan
The time.

Return Value

Type: Int64

Reference

TimeBase Class

TwinCAT.PlcOpen Namespace