[API] Get datetime when an item is processed

Feel free to talk about anything and everything in this board.
Post Reply
Stealth
Newbie
Newbie
Posts: 1
Joined: March 6th, 2011, 12:45 pm

[API] Get datetime when an item is processed

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

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

Post 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.
Post Reply