@exodus/synchronized-time

1.0.1 • Public • Published

SynchronizedTime

npm

The purpose of this module is to maintain externally synchronized time and provide the now() function that returns that time.

Install

yarn add @exodus/synchronized-time

Usage

import { SynchronizedTime } from '@exodus/synchronized-time'

console.log(SynchronizedTime.now())

The module can be used with Date like this:

const syncedDate = new Date(SynchronizedTime.now())
or instead of Date.now():
const syncedNow = SynchronizedTime.now()

Readme

Keywords

none

Package Sidebar

Install

npm i @exodus/synchronized-time

Weekly Downloads

1,421

Version

1.0.1

License

MIT

Unpacked Size

4.39 kB

Total Files

5

Last publish

Collaborators

  • joshuabot