timestamp format in xml-rpc presentation

Hello,

I use xml-rpc presentation on a CPX4 (dia 1.3.8). In the response I get the following frame:

timestamp
1285243067.0

The value corresponds to the date and the hour of the measure, but this format is not handy. I would like to have directly the timestamp in the following format:

either
23/09/2010 13:30:00

or
20010923T13:30:00

What can I do to get this format ?

Hi c.dufay,

I believe you can use following line:

datetime=time.strftime(ā€œ%Y-%m-%d %H:%M:%Sā€, time.localtime(int(timestamp)))

It works for me.

Boris

Thanks, That helped me also