time

endpoint for useful time oprations.

expires in to a unix timestamp

GET

/time/expiresInToUnixTime?createdAt={createdAt}&expiresIn={expiresIn}

converts an expiresIn value to a specific time when a paste should expire.

list of possible expiresIn values: never, 1h, 2h, 10h, 1d, 2d, 1w, 1m, 1y.

example request:

GET

/time/expiresInToUnixTime?createdAt=1588441258&expiresIn=1w
{
  "result": 1589046058
}