Time addition
GET https://postman-echo.com/time/add?timestamp=2016-10-10&years=100
A simple GET
request to /time/add
to add units of time to the specified / current timestamp (as provided in the years
, months
, days
, hours
, minutes
, seconds
, and milliseconds
query parameters).
This endpoint accepts timestamp
, locale
, format
, and strict
query parameters to construct the date time instance to check against.
Responses are provided in JSON format, with a sum
key to indicate the result. The response code is 200
for valid query parameters, and 400
otherwise.
{
sum: "sum of (provided / current) and provided timestamps"
}
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
timestamp | string | ||
years | number |