Skip to content

denisediniz/timestamp-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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" }

Releases

No releases published

Packages

No packages published