Start of time
GET https://postman-echo.com/time/start?timestamp=2016-10-10&unit=month
A simple GET
request to /time/start
to return a relative timstamp in the past from the specified / current timestamp (as provided in the unit
query parameter).
For instance, if the unit
has been specified as month
, the returned timestamp would indicate the beginning of the current month. Similar results are returned for other units of time, like: years
, months
, days
, hours
, minutes
, seconds
, and milliseconds
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 start
key to indicate the result. The response code is 200
for valid query parameters, and 400
otherwise.
{
start: "A timestamp from the past, depending on the `unit` specified"
}
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
timestamp | string | ||
unit | string |