Skip to content

khansubhan95/timestamp-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Timestamp Microservice

An API that takes a given time in either unix or human readable form and returns both forms.

Getting Started

Prerequisites

  1. node
  2. npm

Installation

Clone the project

git clone https://github.com/khansubhan95/timestamp-microservice.git

run

npm install

to install the dependencies

Usage

Valid endpoints

Human readable /December 1, 2014 or /December%201,%202014

Unix timestamp /1417372200

Returns

{'unix': 1417372200,'natural': "December 01, 2014"}

Invalid endpoint

/hello

Returns

{'unix': null,'natural': null}

Builtwith

express

View other dependencies in package.json

Licensing

MIT

About

Get time in unix and human readable forms

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published