https://github.com/erdembircan/timestamp-microservice
freeCodeCamp TimeStamp Microservice API Project
https://github.com/erdembircan/timestamp-microservice
api freecodecamp microservice timestamp
Last synced: 5 months ago
JSON representation
freeCodeCamp TimeStamp Microservice API Project
- Host: GitHub
- URL: https://github.com/erdembircan/timestamp-microservice
- Owner: erdembircan
- Created: 2017-12-11T08:17:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-11T16:22:45.000Z (over 8 years ago)
- Last Synced: 2025-01-13T03:15:23.624Z (about 1 year ago)
- Topics: api, freecodecamp, microservice, timestamp
- Language: JavaScript
- Homepage: https://erdembircan.github.io/timestamp-microservice/
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
freeCodeCamp
Timestamp Microservice API Project
User stories:
1) I can pass a string as a parameter, and it will check to see whether that string contains either a unix timestamp
or a natural language date (example: January 1, 2016)
2) If it does, it returns both the Unix timestamp and the natural language form of that date.
3) If it does not contain a date or Unix timestamp, it returns null for those properties.
Usage:
https://limitless-gorge-38874.herokuapp.com/December%2015,%202015
https://limitless-gorge-38874.herokuapp.com/1450137600
Example output:
{
"unix": 1450137600,
"natural": "December 15, 2015"
}