Skip to content

jasmeetsohal/fcc-timestamp-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Project: Timestamp Microservice for FCC

What actually does:

  1. Parses the query parameter to date string or milliseconds.
  2. The API endpoint is GET [project_url]/api/timestamp/:date_string?.
  3. If it doesn't match the date_string as javascript's new Date() the API returns a JSON having structure {"unix": null, "utc" : "Invalid Date" }

Example usage:

Example output:

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

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published