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.

Initializes a new instance of the DateBase class.

DateBase(DateTime)

Initializes a new instance of the DateBase class.

DateBase(Int64)

Initializes a new instance of the DateBase class.

DateBase(UInt32)

Initializes a new instance of the DateBase class.

Properties

 

Name

Description

Date

Gets or sthe date value.

MarshalSize

Gets the marshal size in bytes.

Ticks

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

Methods

 

Name

Description

DateToValue

Converts the specified DateTime value to PlcOpen Ticks.

Equals

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

Finalize

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

GetHashCode

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

GetType

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

MemberwiseClone

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

ParseToTicks

Parses the specified PlcOpen Date string to PlcOpen ticks.

ToString

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

ValueToDate(Int64)

Converts the specified PlcOpen dateValue in ticks to a DateTime Object

ValueToDate(UInt32)

Converts the specified PlcOpen dateValue in ticks to a DateTime Object

Fields

 

Name

Description

internalDateValue

The internal date value

Reference

TwinCAT.PlcOpen Namespace