-
Pass a string as a parameter into the url, and it will check whether it is a Unix timestamp or a natural language date.
-
If it is, the API will return both the Unix timestamp and the natural language date.
-
If it is not a valid timestamp or date, the API will return null for both properties.
https://timestamp-microservice2017.herokuapp.com/245013760
https://timestamp-microservice2017.herokuapp.com/Oct%2006,%201977
{
unix: 245013760,
naturalDate: "Oct 06, 1977"
}