Echelon i.LON SmartServer Technical Information Page 77

  • Download
  • Add to my manuals
  • Print
  • Page
    / 443
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 76
i.LON SmartServer 2.0 Programmer’s Reference
5-12
5.3.4.1 Local Times and Coordinated Universal Time
The timestamps for the <UCPTstart> and <UCPTstop> properties conform to the ISO 8601 standard.
They are expressed in local time, with appended time zone indicators that show the relationship to the
Coordinated Universal Time (UTC ).
UTC is an international time standard and is the current term for what was commonly referred to as
Greenwich Meridian Time (GMT). Zero (0) hours UTC is midnight in Greenwich England, which lies
on the zero longitudinal meridian. Universal time is based on a 24 hour clock, therefore, afternoon
hours such as 4 pm UTC are expressed as 16:00 UTC. The timestamp uses the following format:
[YYYY-MM-DD]T [HH:MM:SS.sss]+/-[HH:MM]
The first segment of the timestamp [YYYY-MM-DD] represents the date. The second segment
(T[HH:MM:SS.MSS]) of the timestamp represents the local time, expressed in hours, minutes, seconds
and fractions of a second.
The third segment of the timestamp (+/-[HH:MM]) represents the difference between the local time
listed in the second segment and UTC. This segment begins with a + or a -. The + indicates that the
local time is ahead of UTC, and the - indicates the local time is behind UTC. If the local time matches
UTC, the third segment will be replaced by the letter Z.
Consider the following example:
2002-08-13T10:24:37.111+02:00
This timestamp indicates a local date and time of 10:24 AM and 37.111 seconds, on August 13, 2002.
Because the third part of the segment reads +02:00, we know the local time here is 2 hours ahead of
UTC.
5.3.5
Using the Clear Function on a Data Logger
You can use the Clear function to remove log entries from a Data Logger’s log file. You can specify
which Data Logger is to be affected, and which log entries will be removed using xSelect statements.
If no filter is specified with an xSelect statement, the whole data log will be deleted.
Note: This function only deletes the log entries. You can delete the Data Logger itself using the
Delete function.
The following call to the Clear function deletes up to 100 log entries from a data logger that occurred after the specified
date and time.
Request
<Clear xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<xSelect>
//Item[UCPTlastUpdate&gt;="2008-02-28T14:00:00.000-8:00"]
[position()&gt;=0 and position()&lt;=99]
</xSelect>
<Item>
<UCPTname>Net/LON/iLON App/Data Logger[0]</UCPTname>
</Item>
</iLonItem>
</Clear>
Response
<ClearResponse xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem >
<UCPTfaultCount>0</UCPTfaultCount>
<Item xsi:type="UFPTdataLogger_ClearResponse" >
<UCPTname>Net/LON/iLON App/Data Logger[0]</UCPTname>
<UCPTlastUpdate>2008-02-28T14:14:08.340-08:00</UCPTlastUpdate>
<UCPTstart>2008-02-28T12:28:52.780-08:00</UCPTstart>
Page view 76
1 2 ... 72 73 74 75 76 77 78 79 80 81 82 ... 442 443

Comments to this Manuals

No comments