🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
OCLOperators atTime
Created by Peter on 2019-12-19 · Last edited by Colline.ssali on 2025-12-29.

The atTime operator is used to retrieve a read-only historical version of an object as it existed at a specific point in time. It works on versioned objects, allowing you to access past attribute values and states without modifying the current object. This operator is especially useful for auditing, history tracking, and temporal analysis.

Gives the read-only representation of a versioned object as it was at time X.

Assume Department is a versioned class. To retrieve the Department class as it is at a particular time

self.atTime(myDateTime)

Example:

self.atTime(DateTime('2024-01-01T00:00:00')).DepartmentName

See: Versioned_on_class.