DateBase Class

PlcOpen Date base class.

Inheritance Hierarchy

System.Object
  TwinCAT.PlcOpen.DateBase
    TwinCAT.PlcOpen.DATE
Namespace:  TwinCAT.PlcOpen
Assembly:  TwinCAT.Ads (in TwinCAT.Ads.dll) Version: 4.3.0.0

Syntax

C#

public abstract class DateBase : IPlcOpenType<DateTime, uint>, 
    IPlcOpenType

VB

Public MustInherit Class DateBase
    Implements IPlcOpenType(Of DateTime, UInteger), 
    IPlcOpenType

The DateBase type exposes the following members.

Constructors

 

Name

Description

DateBase Class 1:

DateBase.

Initializes a new instance of the DateBase class.

DateBase Class 2:

DateBase(DateTime)

Initializes a new instance of the DateBase class.

DateBase Class 3:

DateBase(Int64)

Initializes a new instance of the DateBase class.

DateBase Class 4:

DateBase(UInt32)

Initializes a new instance of the DateBase class.

Properties

 

Name

Description

DateBase Class 5:

Date

Gets or sthe date value.

DateBase Class 6:

DateBase Class 7:

MarshalSize

Gets the marshal size in bytes.

DateBase Class 8:

Ticks

Returns the number of ticks that represent the value of this IPlcOpenType (uint32 or uint64).

Methods

 

Name

Description

DateBase Class 9:

DateBase Class 10:

DateToValue

Converts the specified DateTime value to PlcOpen Ticks.

DateBase Class 11:

Equals

Determines whether the specified Object is equal to this instance. (Overrides Object.Equals(Object).)

DateBase Class 12:

Finalize

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)

DateBase Class 13:

GetHashCode

Gets the HashCode of the Address (Overrides Object.GetHashCode..)

DateBase Class 14:

GetType

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

DateBase Class 15:

MemberwiseClone

Creates a shallow copy of the current Object. (Inherited from Object.)

DateBase Class 16:

ParseToTicks

Parses the specified PlcOpen Date string to PlcOpen ticks.

DateBase Class 17:

ToString

Returns a string that represents the current object. (Inherited from Object.)

DateBase Class 18:

DateBase Class 19:

ValueToDate(Int64)

Converts the specified PlcOpen dateValue in ticks to a DateTime Object

DateBase Class 20:

DateBase Class 21:

ValueToDate(UInt32)

Converts the specified PlcOpen dateValue in ticks to a DateTime Object

Fields

 

Name

Description

DateBase Class 22:

internalDateValue

The internal date value

Reference

TwinCAT.PlcOpen Namespace