SetTime (PersistentObjectInfo function)

From m204wiki
Jump to navigation Jump to search

Time object was set (YYYYMMDDHHMISSXXX format) (PersistentObjectInfo class)

[Introduced in Sirius Mods 7.8]


Syntax

%string = persObjInfo:SetTime

Syntax terms

%string A string variable to contain the time the object was set (YYYYMMDDHHMISSXXX format).
persObjInfo A PersistentObjectInfo object variable.

Usage notes

SetTime is intended for debugging and problem diagnosis and not for application purposes. For global and session variable declarations, SetTime does not change if request A sets a variable to an object instance, and then request B sets it to a new value, SetTime still indicates the time the object reference was set in request A.

Examples

A somewhat trivial example follows:

b %i is float %persInfo is object persistentObjectInfo %sl is object stringlist %sl = list('alpha', 'beta', 'ceta') %(Object):SetGlobal('ABC', %sl) %persInfo = newFromGlobal('ABC') printText {~} = {%persInfo:name}, {~} = {%persInfo:setTime} end

The result is:

%persInfo:name = ABC, %persInfo:setTime = 20110819105715221

See also