DT Class

PlcOpen DT (DATE_AND_TIME) datatype.

Inheritance Hierarchy

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

Syntax

C#

public sealed class DT : DateBase

The DT type exposes the following members.

Constructors

 

Name

Description

DT Class 1:

DT.

Initializes a new instance of the DT class.

DT Class 2:

DT(DateTime)

Initializes a new instance of the DT class.

DT Class 3:

DT(DateTimeOffset)

Initializes a new instance of the DT class.

DT Class 4:

DT(UInt32)

Initializes a new instance of the DT class.

DT Class 5:

DT(Int32, Int32, Int32, Int32, Int32, Int32)

Initializes a new instance of the DT class.

Properties

 

Name

Description

DT Class 6:

DateTime

Gets or the date value (only the Date part of the DateTime)

DT Class 7:

Ticks

Returns the number of ticks that represent the value of this DateBase. (Inherited from DateBase.)

Methods

 

Name

Description

DT Class 8:

Equals

Determines whether the specified Object is equal to this instance. (Inherited from DateBase.)

DT Class 9:

GetHashCode

Gets the HashCode of the Address (Inherited from DateBase.)

DT Class 10:

GetType

Gets the Type of the current instance. (Inherited from Object.)

DT Class 11:

DT Class 12:

Parse

Parses the specified string to the DT object.

DT Class 13:

ToString

Returns a String that represents this instance. (Overrides Object.ToString..)

DT Class 14:

DT Class 15:

TryParse

Tries to parse the specified string to a DT object.

Reference

TwinCAT.PlcOpen Namespace