API Project: Timestamp Microservice

Pass a string as a parameter either a unix timestamp or a natural language date.

If it valid it returns both the unix timestamp and the natural language form of that date, otherwise both null.


GET /:timestamp (integer)

Example usage

https://hisener-timestamp-api.herokuapp.com/958590000

Response example

{ "unix": 958590000, "natural": "May 17, 2000" }
GET /:date (string)

Example usage

https://hisener-timestamp-api.herokuapp.com/April%203,%202016

Response example

{ "unix": 1459641600, "natural": "April 3, 2016" }

Github repository