Skip to content
Time Microservice
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
public/stylesheets
routes
views
.gitignore
Procfile
README.md
app.js
npm-debug.log
package.json

README.md

Chris Mayer's RESTful API Time Microservice

The app is running on this website:
https://mayer-time-api-microservice.herokuapp.com/

With this microservice, one will be able to:

  • 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 21, 2017).
  • If it does, it returns both the Unix timestamp and the natural language form of that date.
  • If it does not contain a date or Unix timestamp, it returns null for those properties.

Example usage:

https://mayer-time-api-microservice.herokuapp.com/January 21, 2017
https://mayer-time-api-microservice.herokuapp.com/1484956800

Example JSON output:

{ "unix": 1484956800, "natural": "January 21, 2017" }
You can’t perform that action at this time.