Page 1 of 1

[API] Get datetime when an item is processed

Posted: March 6th, 2011, 12:50 pm
by Stealth
Hello,

I am building a small application to notify me when a download has been fully processed (repairing, unpacking etc.) I would like to include the timestamp when the download was processed (the datetime shown on the right in the historylist of sab). But I can't seem to locate the field in the API output.

Is it not their or am I simply missing the field?

Futhermore, I was wondering what the "completed" field means in the API. Is this the number of bytes that has been downloaded to complete the download, or is this a timestamp when a download was completed?

Re: [API] Get datetime when an item is processed

Posted: March 6th, 2011, 6:32 pm
by shypike
The API is rather poorly documented ( http://wiki.sabnzbd.org/api#toc10 )
The long numbers are timestamps Unix epoch style, which is seconds since Jan 1, 1970.
Most libraries have conversion functions for that.