1.0.1 • Published 10 months ago

@exodus/synchronized-time v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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()
1.0.1

10 months ago

1.0.0

10 months ago