GunzipDatetimeNS (String function): Difference between revisions
Jump to navigation
Jump to search
m (→Syntax terms) |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Template:String:GunzipDatetimeNS subtitle}} | {{Template:String:GunzipDatetimeNS subtitle}} | ||
==Syntax== | ==Syntax== | ||
{{Template:String:GunzipDatetimeNS syntax}} | {{Template:String:GunzipDatetimeNS syntax}} | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>%number</th><td>The date/time stamp extracted from the GZIPped <var class="term">string</var>, expressed as number of seconds since 12:00 AM, Jan 1, 1900.</td></tr> | <tr><th nowrap>%number</th><td>The date/time stamp extracted from the GZIPped <var class="term">string</var>, expressed as number of seconds since 12:00 AM, Jan 1, 1900.</td></tr> | ||
<tr><th>string</th> | <tr><th>string</th> | ||
<td>The GZIPped string.</td></tr> | <td>The GZIPped string.</td></tr> | ||
Line 16: | Line 15: | ||
==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== | ||
<ul> | |||
<li>Other related methods: | |||
<ul> | |||
<li><var>[[Gunzip (String function)|Gunzip]]</var> | |||
<li><var>[[GunzipFilename (String function)|GunzipFilename]]</var> | |||
<li><var>[[Gzip (String function)|Gzip]]</var> | |||
<li><var>[[Zip (String function)|Zip]]</var> | |||
<li><var>[[Deflate (String function)|Deflate]]</var> | |||
<li><var>[[Inflate (String function)|Inflate]]</var> | |||
</ul> | |||
{{Template:String:GunzipDatetimeNS footer}} | {{Template:String:GunzipDatetimeNS footer}} |
Latest revision as of 21:13, 3 September 2015
Return create date of GZIP format longstring (String class)
[Introduced in Sirius Mods 7.4]
Syntax
%number = string:GunzipDatetimeNS Throws InvalidGZipData
Syntax terms
%number | The 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
- Other related methods: