View Code? Open in Web Editor
NEW
Timestamp Microservice
Home Page: https://timestamp-microservice-dd.glitch.me
timestamp-microservice's Introduction
- The API endpoint is
GET https://timestamp-microservice-dd.glitch.me/api/timestamp/:date_string?
- If the date string is empty the service uses the current timestamp.
- If the date string is valid the api returns a JSON having the structure
`{"unix": <UNIX_FORMAT_DATE>, "utc" : <UTC_FORMAT_DATE> }
- If the date string is invalid the api returns a JSON having the structure
{"unix": null, "utc" : "Invalid Date" }
.
- { "unix": 1450137600, "natural": "December 15, 2015" }