I never work with XPS, I don't know if this will work
Code:
select sid ,
username ,
pid ,
hostname ,
l2date(connected),
dbinfo('utc_to_datetime',connected),
extend(dbinfo('utc_to_datetime',connected), year to day)
from syssessions
order by 5;
Be careful , because the l2date round the result, the dbinfo don't
A example of the output:
Code:
sid 18
username informix
pid 0
hostname
(expression) 28/08/09
(expression) 2009-08-27 22:16:19
(expression) 2009-08-27
sid 17
username informix
pid 0
hostname
(expression) 28/08/09
(expression) 2009-08-27 22:16:19
(expression) 2009-08-27
here my locale is pt_BR , because this my date format is DD/MM/YY