@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
41 lines • 1 kB
JavaScript
/**
* SPDX-License-Identifier: Apache-2.0
*/
/**
* Provides constants for working with time.
*/
export class Time {
/**
* The number of hours in a day.
*/
static HOURS_PER_DAY = 24;
/**
* The number of minutes in an hour.
*/
static MINUTES_PER_HOUR = 60;
/**
* The number of seconds in a minute.
*/
static SECONDS_PER_MINUTE = 60;
/**
* The number of seconds in an hour.
*/
static SECONDS_PER_HOUR = Time.SECONDS_PER_MINUTE * Time.MINUTES_PER_HOUR;
/**
* The number of seconds in a day.
*/
static SECONDS_PER_DAY = Time.SECONDS_PER_HOUR * Time.HOURS_PER_DAY;
/**
* The number of milliseconds in a second.
*/
static MILLIS_PER_SECOND = 1000;
/**
* The number of nanoseconds in a second.
*/
static NANOS_PER_SECOND = 1_000_000_000;
/**
* The number of nanoseconds in a millisecond.
*/
static NANOS_PER_MILLI = 1_000_000;
}
//# sourceMappingURL=time.js.map