How to set expiry to above 30 days for document

The lib I used is couchnode.
it has one option: expiry for calling the create record API(upsert)
but the problem is this expiry only allow integer type which is litter then 2147483647, how can I set this with a long type which is the timestamp value for the day when the record can be expiry.

Do you mean that it does not accept values larger that 60 * 60 * 24 * 30 = 2592000? All values above this one interpreted as a timestamps by the server. 2147483647 is in fact 2038-01-19 03:14:07 UTC.

Do you receive some error message when using values higher that 30 days?

Docs about expiration:

No, I do not get any error with setting expiry between 2592000 and 2147483647.
it was me self passing the number of milliseconds since 1 January 1970 00:00:00 UTC.
seem i understand wrong.

Yes, the resolution is the seconds. For both relative and absolute.

So, the correct way to set expiry is in total number of seconds from now or in a timestamp?

I’m trying to do 7 day expiry, so I just use 60*60*24*7 as expiry, correct?