Object representation
GET https://postman-echo.com/time/object?timestamp=2016-10-10
A simple GET
request to /time/object
to return the current / provided timestamp as a JSON object.
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. The response code is 200
for valid query parameters, and 400
otherwise.
{
years: 2016,
months: 10,
days: 10,
hours: 23,
minutes: 34,
seconds: 20,
milliseconds: 980
}
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
timestamp | string |