denisediniz / timestamp-microservice

Timestamp Microservice

Home Page:https://timestamp-microservice-dd.glitch.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Timestamp Microservice

Notes

  1. The API endpoint is GET https://timestamp-microservice-dd.glitch.me/api/timestamp/:date_string?
  2. If the date string is empty the service uses the current timestamp.
  3. If the date string is valid the api returns a JSON having the structure `{"unix": <UNIX_FORMAT_DATE>, "utc" : <UTC_FORMAT_DATE> }
  4. If the date string is invalid the api returns a JSON having the structure {"unix": null, "utc" : "Invalid Date" }.

Example Usage

Example Output

  • { "unix": 1450137600, "natural": "December 15, 2015" }

About

Timestamp Microservice

https://timestamp-microservice-dd.glitch.me


Languages

Language:JavaScript 100.0%