The timestamp microservice takes a GET request with a natural language date or unix timestamp, and returns a JSON object containing both the unix timestamp and natural language equivalent.
try it here: https://slpx-timestamp.herokuapp.com/
- Endpoint:
https://slpx-timestamp.herokuapp.com/:time
- Method:
GET
- Params: either a natural language date, or a unix timestamp
GET request: https://slpx-timestamp.herokuapp.com/{natural-language-date || unix-timestamp}
simply add a date or unix timestamp to the URL
# Note: '%20' is the equivalent of a space, you can use spaces with API
# the browser will automatically convert those spaces to '%20'
https://slpx-timestamp.herokuapp.com/july%201%202016
https://slpx-timestamp.herokuapp.com/1467331200
# the above will return
{"unix":1467331200,"natural":"July 1, 2016"}