endpoint for useful time operations.
GET
/time/expiresInToUnixTime?createdAt={createdAt}&expiresIn={expiresIn}
converts an expiresIn
value to a specific time when a paste should expire.
createdAt
- unix timestamp of a creation dateexpiresIn
- when a paste expireslist of possible expiresIn
values: never, 1h, 2h, 10h, 1d, 2d, 1w, 1m, 1y.
example request:
GET
/time/expiresInToUnixTime?createdAt=1588441258&expiresIn=1w
{
"result": 1589046058
}