GunzipDatetimeNS (String function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
Line 16: Line 16:


==Examples==
==Examples==
If a LOB field named DOCUMENT has a string which was the output of <var>Gzip</var>, the following fragment will display the <var>LastModified</var> date from that <var>Gzip</var> invocation:
<p class="code">print DOCUMENT:gunzipDatetimeNS:secondsToString('DD Mon YYYY HH:MI:SS')</p>
==See also==
==See also==
{{Template:String:GunzipDatetimeNS footer}}
{{Template:String:GunzipDatetimeNS footer}}

Revision as of 20:43, 8 February 2012

Return create date of GZIP format longstring (String class)

[Introduced in Sirius Mods 7.4]


Syntax

%number = string:GunzipDatetimeNS Throws InvalidGZipData

Syntax terms

%numberThe date/time stamp extracted from the GZIPped string, expressed as number of seconds since 12:00 AM, Jan 1, 1900.
string The GZIPped string.

Usage notes

  • The date/timestamp is stored in a GZIPped string using the LastModified argument of the Gzip function.

Examples

If a LOB field named DOCUMENT has a string which was the output of Gzip, the following fragment will display the LastModified date from that Gzip invocation:

print DOCUMENT:gunzipDatetimeNS:secondsToString('DD Mon YYYY HH:MI:SS')

See also