FreeCodeCamp Project: timestamp-microservice API-(GitHub)

Description:

This is an API that serves a timestamp json object with unix time and human readable date

Instructions:

  1. Pass a string as a parameter to the URL, the paramenter should be a unix timestamp or a human readable date (See Examples).
  2. If the string passed is valid, the API returns a json object with a "unix" time property and a "natural" date property.
  3. If the string passed is NOT valid, the API returns a null value for each of the properties of the json object.

Examples:

https://anfelo-timestamp-ms.glitch.me/January%2018,%201991

https://anfelo-timestamp-ms.glitch.me/664156800000

Output:

{ "unix": 664156800000, "natural": "January 18, 1991" }