What format is UploadOptions.expires?

Is it DateTime in seconds or milliseconds?

In go it says time.Time, but what does this mean for uplink-nodejs? The type there is int.

I am not too familiar with these, but looking at uplink-php it seems to be passed through in UNIX time (seconds elapsed since UNIX epoch.) I would assume that’s the same for uplink-nodejs. I also checked uplink-c which both of these libraries use, and this would seem to indicate it is indeed UNIX time.

Reference:

5 Likes