<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[unsigned int64 bit data polling]]></title><description><![CDATA[<p dir="auto">Good day</p>
<p dir="auto">I am busy setting up File.Time.Access / Change / Modify parameters. </p>
<p dir="auto">I don not understand the Int64 bit type.  Is the data in milliseconds? When i convert it, the data set is wrong in days or hours.</p>
<p dir="auto">My server's date is correct tho as i thought it could be NTP or system date.</p>
<p dir="auto">Thanx</p>
]]></description><link>https://forum.netxms.org/topic/4137/unsigned-int64-bit-data-polling</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:19:12 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4137.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Nov 2015 06:36:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to unsigned int64 bit data polling on Thu, 14 Jan 2016 14:48:57 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor</p>
<p dir="auto">Thanx so much for your help.  It put me in the right direction.</p>
<p dir="auto">My script i compiled was:<br />
t = ($1);<br />
day = gmtime(t)-&gt;mday;<br />
mon = gmtime(t)-&gt;mon+1;<br />
year = gmtime(t)-&gt;year;<br />
hour = gmtime(t)-&gt;hour;<br />
min = gmtime(t)-&gt;min;<br />
return day."-".mon."-".year."/".hour.":".min;</p>
<p dir="auto">This gave me an output in the following date format:<br />
14-1-2016/14:29<br />
DD-M-YYY/HH:MM</p>
<p dir="auto">I also struggled a bit but remembered to capture string data and not int.</p>
<p dir="auto">I find this helpful for monitoring last modified date and time (which is highly important in my company for some files).</p>
<p dir="auto">Just wanted to say thanx to Victor.  Really appreciate your help.</p>
<p dir="auto">Regards<br />
Duane</p>
]]></description><link>https://forum.netxms.org/post/18845</link><guid isPermaLink="true">https://forum.netxms.org/post/18845</guid><dc:creator><![CDATA[duanebutler]]></dc:creator><pubDate>Thu, 14 Jan 2016 14:48:57 GMT</pubDate></item><item><title><![CDATA[Reply to unsigned int64 bit data polling on Thu, 14 Jan 2016 08:12:43 GMT]]></title><description><![CDATA[<p dir="auto">If you need to format date like this you can use strftime function:</p>
<p dir="auto">return strftime("%d-%m-%Y %H:%M", $1);</p>
<p dir="auto">This will convert UNIX time stamp from $1 into string of format DD-MM-YYYY HH:MM.</p>
<p dir="auto">Alternatively, you can use string concatenation, like this:</p>
<p dir="auto">t = gmtime($1);<br />
return t-&gt;mday . "-" . t-&gt;mon . "-" . t-&gt;year;</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/18840</link><guid isPermaLink="true">https://forum.netxms.org/post/18840</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 14 Jan 2016 08:12:43 GMT</pubDate></item><item><title><![CDATA[Reply to unsigned int64 bit data polling on Wed, 13 Jan 2016 09:54:46 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor</p>
<p dir="auto">I am fairly new to NetXMS scripting.  I actually got this far as to use the gmtime function gmtime()-&gt;mday to get the day only.</p>
<p dir="auto">How can i use the gmtime function to extract the DD-MM-YYYY and maybe HH-SS if possible? Like 12-01-2016 14:30</p>
<p dir="auto">Regards</p>
]]></description><link>https://forum.netxms.org/post/18831</link><guid isPermaLink="true">https://forum.netxms.org/post/18831</guid><dc:creator><![CDATA[duanebutler]]></dc:creator><pubDate>Wed, 13 Jan 2016 09:54:46 GMT</pubDate></item><item><title><![CDATA[Reply to unsigned int64 bit data polling on Wed, 16 Dec 2015 20:31:49 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">by file age I meant how old it is - difference between current time and time of file creation/modification.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/18645</link><guid isPermaLink="true">https://forum.netxms.org/post/18645</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 16 Dec 2015 20:31:49 GMT</pubDate></item><item><title><![CDATA[Reply to unsigned int64 bit data polling on Wed, 16 Dec 2015 16:04:00 GMT]]></title><description><![CDATA[<p dir="auto">Thanx Victor</p>
<p dir="auto">Much Appreciate it.</p>
<p dir="auto">By files age do you mean the date stamp on file when last modified?</p>
<p dir="auto">I will try the script and see how it goes.</p>
<p dir="auto">Thanx alot!!</p>
]]></description><link>https://forum.netxms.org/post/18641</link><guid isPermaLink="true">https://forum.netxms.org/post/18641</guid><dc:creator><![CDATA[duanebutler]]></dc:creator><pubDate>Wed, 16 Dec 2015 16:04:00 GMT</pubDate></item><item><title><![CDATA[Reply to unsigned int64 bit data polling on Tue, 24 Nov 2015 18:46:22 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">depending on what you want to achieve. If you are interested in file's age, you can get it in seconds using transformation script like this:</p>
<pre><code>return time() - $1;
</code></pre>
<p dir="auto">For more complicated transformations you can use <a href="https://wiki.netxms.org/wiki/NXSL:gmtime" rel="nofollow ugc">gmtime</a> or <a href="https://wiki.netxms.org/wiki/NXSL:localtime" rel="nofollow ugc">localtime</a> functions. Both returns break down time as <a href="https://wiki.netxms.org/wiki/NXSL:TIME" rel="nofollow ugc">TIME</a> object. There is also function strftime that can be used to format time but it is not documented yet.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/18420</link><guid isPermaLink="true">https://forum.netxms.org/post/18420</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 24 Nov 2015 18:46:22 GMT</pubDate></item><item><title><![CDATA[Reply to unsigned int64 bit data polling on Tue, 24 Nov 2015 09:00:38 GMT]]></title><description><![CDATA[<p dir="auto">I found that it polls UNIX time.</p>
<p dir="auto">How can i convert this once polled?</p>
]]></description><link>https://forum.netxms.org/post/18413</link><guid isPermaLink="true">https://forum.netxms.org/post/18413</guid><dc:creator><![CDATA[duanebutler]]></dc:creator><pubDate>Tue, 24 Nov 2015 09:00:38 GMT</pubDate></item></channel></rss>