Skip to content

Instantly share code, notes, and snippets.

@ukmadlz
Last active March 1, 2018 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ukmadlz/4e2155c3a17bc9a8e16259edb9d9e86f to your computer and use it in GitHub Desktop.
Save ukmadlz/4e2155c3a17bc9a8e16259edb9d9e86f to your computer and use it in GitHub Desktop.
NodeJS Dev: Time API

WebApi Time

Build a simple API to return the current timestamp in Unix time as a JSON object when a GET request is made to /time

Extension

Time is a hard concept.

Produce a system that takes a timestamp and an offset return the UTC, the local timestamp and new timestamp with the relevant offset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment