Skip to Content
Open SourceHydraLibraries@exodus/synchronized-time

@exodus/synchronized-time

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

Install

npm i @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();
Last updated on

Start building

XO

Request Demo

Schedule a call with our team

Select a product
Arrow right