Skip to content

Aayushkumr/Timestamp-Microservice

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Project: Timestamp Microservice for FCC

Live on glitch

The API endpoint is GET [url]/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 e.g. {"unix": 1479663089000 ,"utc": "Sun, 20 Nov 2016 17:31:29 GMT"}. API accepts unix time. If the date string is invalid the api returns a JSON having the structure {"error" : "Invalid Date" }.

Example usage:

Example output:

  • {"unix":1451001600000, "utc":"Fri, 25 Dec 2015 00:00:00 GMT"}

About

freeCodeCamp's APIs and Microservices project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 47.4%
  • JavaScript 34.0%
  • CSS 18.6%