|
|
|
|
|
|
|
|
|
|
xen-api
RE: [Xen-API] question regarding Event.timestamp field
Thanks for clarifying Dave. I think the SDK (at least the Java Bindings)
may need a change in the Event class.
Also, just FYI, the apache folks (http://ws.apache.org/xmlrpc) interpret
the XML-RPC specs differently and don't think the SPEC permit timezones.
There is a thread on this with recent activity under xmlrpc-dev forum.
Although I agree with you that without timezone information, the date
timestamp is incomplete.
-Ajay
-----Original Message-----
From: Dave Scott [mailto:Dave.Scott@xxxxxxxxxxxxx]
Sent: Monday, August 17, 2009 10:21 AM
To: Aggarwal, Ajay; xen-api@xxxxxxxxxxxxxxxxxxx
Subject: RE: [Xen-API] question regarding Event.timestamp field
Hi Ajay,
Ajay wrote:
...
> However the Event.timestamp field, which is also of type 'datetime' as
per the Xen API
> specs, comes as integer looking string
Unfortunately this is a mismatch between the spec and the XenServer
implementation. The trailing dot on the end indicates this is a floating
point number with an omitted final '0' suffix. The number is a Unix
seconds-since-1970.
> Also, as per the XPM-RPC specs (http://www.xmlrpc.com/spec), the
<dateTime.iso8601>
> example is given as "19980717T14:08:55". Note that it does not contain
the milliseconds
> and the timezone information. However looking at the traffic between
XenCenter and
> XenServer 5.5, it looks like they do include the timezone information.
You are correct that the <dateTime.iso8601> elements sent by XenServer
contain a timezone (always UTC or 'Z'). The intention was to reduce
confusion by making the timezone explicit. Although different to the
XMLRPC example I think this still conforms to the ISO8601 spec:
http://en.wikipedia.org/wiki/ISO_8601
Cheers,
Dave
--
Dave Scott <dave.scott@xxxxxxxxxx>
Senior Architect, Citrix Systems (R&D) Ltd.
[Company #02300071, SL9 ODZ, UK.]
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
|
|
|
|
|