Files
wwtools/aot/reference/CMxTime.md
Joseph Doherty 32f26272ae Initial commit: Wonderware / System Platform tools and reference
Five tools under one repo, all docs organized per DOCS-GUIDE.md:

- aalogcli: .NET 4.8 / x86 CliFx CLI for reading System Platform binary
  logs (*.aaLGX) for LLM debugging, built on aaOpenSource/aaLog. Commands:
  last, tail, range, unread, fields. Stable JSON envelope under --llm-json.
  Build template under lib/build/ for rebuilding aaLogReader.dll.

- aot: ArchestrA Object Toolkit 2014 v4.0 reference material. Dev guide
  (Markdown converted from CHM), API reference for the ArchestrA.Toolkit
  namespace, and the Monitor / Watchdog VS sample solutions.

- graccesscli: .NET 4.8 / x86 CliFx CLI that automates Galaxy
  configuration via the ArchestrA GRAccess COM interop. Includes session
  daemon, IPC protocol, and llm-json envelope contract.

- grdb: SQL/DDL exploration of the Galaxy Repository database. DDL
  captures, reusable queries, hierarchy / contained-name <-> tag-name
  translation notes.

- histdb: LLM-oriented reference for AVEVA Historian retrieval. INSQL
  linked-server, extension tables, every wwXxx time-domain extension,
  every retrieval mode, alarm/event SQL recipes, REST API. Distilled
  from the 243-page Historian Retrieval Guide.

Root contains:
- CLAUDE.md: thin index pointing into each tool's README.
- DOCS-GUIDE.md: doctrine for organizing docs for LLM consumption.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-03 18:22:20 -04:00

5.3 KiB

CMxTime Class

Namespace: ArchestrA.Toolkit

CMxTime is derived from CMxCommon and provides support for Time/DateTime Attributes.

Syntax

public class CMxTime : CMxCommon

CMxTime Property

Value Property

Provides a property to get and set the value as a DateTime.

Syntax

public DateTime Value { get; set; }

Returns

DateTime

CMxTime Constructors

CMxTime Constructor

Provides a default constructor.

Syntax

public CMxTime();

CMxTime Constructor DateTime

Provides a constructor to initialize the class with a DateTime default value.

Syntax

public CMxTime (DateTime v);

Parameters

v

[in] DateTime instance value to be set.

CMxTime Constructor string

Provides a constructor to initialize the class with a formatted time string default value.

Syntax

public CMxTime(string v);

Parameters

v

[in] string value to be set.

CMxTime Constructor SupportWrapper, string

Provides a constructor to initialize the class for use in a primitive wrapper.

Syntax

public CMxTime (SupportWrapper _wrapper, string _attributeRef);

Parameters

_wrapper

[in] SupportWrapper.

_attributeRef

[in] string value that holds the attribute reference.

CMxTime Method

Set Method

Provides a method to set the value of the Attribute from a CMxTime.

Syntax

public void Set(CMxTime val);

Parameters

val

[in] CMxTime value to be set.

CMxTime Operator Overloads

CMxTime Operator Overload DateTime

Provides an operator that converts from DateTime to CMxTime.

Syntax

public static implicit operator CMxTime(DateTime x);

Parameters

x

[in] DateTime value to convert to CMxTime.

Returns

CMxTime

CMxTime Operator Overload CMxValue

Provides an operator that converts from CMxValue to CMxTime.

Syntax

public static implicit operator CMxTime (CMxValue val);

Parameters

val

[in] CMxValue value to convert to CMxTime.

Returns

CMxTime

CMxValue Operator Overload CMxTime

Provides an operator that converts from CMxTime to CMxValue.

Syntax

public static implicit operator CMxValue(CMxTime val);

Parameters

val

[in] CMxTime value to convert to CMxValue.

Returns

CMxValue

DateTime Operator Overload CMxTime

Provides an operator that converts from CMxTime to DateTime.

Syntax

public static implicit operator DateTime (CMxTime val);

Parameters

val

[in] CMxTime value to convert to DateTime.

Returns

DateTime

- Operator Overload CMxTime, DateTime (TimeSpan)

Provides an operator to subtract a DateTime from a CMxTime.

Syntax

public static TimeSpan operator -(CMxTime t1, DateTime t2);

Parameters

t1

[in] CMxTime value.

t2

[in] DateTime value.

Returns

TimeSpan

- Operator Overload CMxTime, TimeSpan (DateTime)

Provides an operator to subtract a TimeSpan from a CMxTime.

Syntax

public static DateTime operator -(CMxTime t1, TimeSpan t2);

Parameters

t1

[in] CMxTime value.

t2

[in] TimeSpan value.

Returns

DateTime

!= Operator Overload CMxTime, DateTime (bool)

Provides an operator to check if a CMxTime and DateTime are not equal.

Syntax

public static bool operator !=(CMxTime t1, DateTime t2);

Parameters

t1

[in] CMxTime value.

t2

[in] DateTime value.

Returns

bool

+ Operator Overload CMxTime, TimeSpan (DateTime)

Provides an operator to add a TimeSpan to a CMxTime.

Syntax

public static DateTime operator +(CMxTime t, TimeSpan ts);

Parameters

t

[in] CMxTime value.

ts

[in] TimeSpan value.

Returns

DateTime

< Operator Overload CMxTime, DateTime (bool)

Provides an operator to check if a CMxTime is less than a DateTime.

Syntax

public static bool operator <(CMxTime t1, DateTime t2);

Parameters

t1

[in] CMxTime value.

t2

[in] DateTime value.

Returns

bool

<= Operator Overload CMxTime, DateTime (bool)

Provides an operator to check if a CMxTime is less than or equal to a DateTime.

Syntax

public static bool operator <=(CMxTime t1, DateTime t2);

Parameters

t1

[in] CMxTime value.

t2

[in] DateTime value.

Returns

bool

== Operator Overload CMxTime, DateTime (bool)

Provides an operator to check if a CMxTime is equal to a DateTime.

Syntax

public static bool operator ==(CMxTime t1, DateTime t2);

Parameters

t1

[in] CMxTime value.

t2

[in] DateTime value.

Returns

bool

> Operator Overload CMxTime, DateTime (bool)

Provides an operator to check if a CMxTime is greater than a DateTime.

Syntax

public static bool operator >(CMxTime t1, DateTime t2);

Parameters

t1

[in] CMxTime value.

t2

[in] DateTime value.

Returns

bool

>= Operator Overload CMxTime, DateTime (bool)

Provides an operator to check if a CMxTime is greater than or equal to a DateTime.

Syntax

public static bool operator >=(CMxTime t1, DateTime t2);

Parameters

t1

[in] CMxTime value.

t2

[in] DateTime value.

Returns

bool