Give it a date in unix or natural form. The api returns json with the date in both unix and natural form.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
templates
.gitignore
README.md
package.json
server.js
test.js

README.md

Time Stamp API

Introduction

This API was built as part of a FreeCodeCamp project: https://www.freecodecamp.com/challenges/timestamp-microservice

Give it a date in unix or natural form. The api returns json with the date in both unix and natural form.

Get /date

Date as a number

Response:

{"unix":1,"natural":"January 1, 1970"}

Date in Month Date Year format

Response:

'{"unix":1412985600000,"natural":"October 11, 2014"}`