DateBase.DateToValue Method

Converts the specified DateTime value to PlcOpen Ticks.

Namespace:  TwinCAT.PlcOpen
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 5.0.294+Branch.releases-5.0.Sha.90bb9a1b43b6095934fddca3e72bc0ea15da1c14

Syntax

C#

public static long DateToValue(
    DateTimeOffset date
)

Parameters

date

Type: System.DateTimeOffset
The date.

Return Value

Type: Int64

Reference

DateBase Class

TwinCAT.PlcOpen Namespace