SetTime (PersistentObjectInfo function): Difference between revisions
m (→Usage notes) |
m (→Syntax terms) |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>%string</th><td> A string variable to contain the time the object was set | <tr><th>%string</th><td> A string variable to contain the time the object was set.</td></tr> | ||
<tr><th> | <tr><th>persObjInfo</th> | ||
<td>A <var>PersistentObjectInfo</var> object variable.</td></tr> | <td>A <var>PersistentObjectInfo</var> object variable.</td></tr> | ||
</table> | </table> |
Latest revision as of 19:43, 19 August 2011
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. |
---|---|
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