the data contain unix time.

The Unix epoch (or Unix time or POSIX time or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT)

I simply convert it to Windows DATE format by:

t1->time = dataVar(1,Record,1)/86400+25569

Now I sorted all with ZHistoryEditor and Zorro works on it!

How to do it in the sript?

I tried:
for(Record = Records-1,Row = 0; Record = 0; Record--)

but it does not work.

Last edited by Hlopetz; 08/01/17 11:05.