sureshmangs / Timestamp-Microservice

Building a Timestamp Microservice

Home Page:https://timestamp-microservice7.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Timestamp-Microservice

App Link: Timestamp-Microservice

Building a Timestamp Microservice

1️⃣ In this a user can pass a URL parameter and it will check wether the entered URL parameter contains a UNIX timestamp or a regular date (ie February 05, 2020 or Feb 05, 2020, with or without commas).

2️⃣ If it does, it returns both the Unix timestamp and the utc form of the date.

3️⃣ If it does not contain a date or Unix timestamp, it returns null for those properties.

Example Usage:

Timestamp-Microservice/api/timestamp/2020-02-05

Timestamp-Microservice/api/timestamp/1580860800000

Example Output:

{"unix":1580860800000,"utc":"Wed, 05 Feb 2020 00:00:00 GMT"}

Technologies used:

1️⃣ Node

2️⃣ Express

About

Building a Timestamp Microservice

https://timestamp-microservice7.herokuapp.com/

License:MIT License


Languages

Language:HTML 59.8%Language:JavaScript 40.2%