@junobuild/utils
Version:
A collection of utilities and constants for Juno JS libs.
14 lines (13 loc) • 453 B
TypeScript
/**
* Returns the current timestamp in nanoseconds as a `bigint`.
*
* @returns {bigint} The current timestamp in nanoseconds.
*/
export declare const nowInBigIntNanoSeconds: () => bigint;
/**
* Converts a given `Date` object to a timestamp in nanoseconds as a `bigint`.
*
* @param {Date} date - The `Date` object to convert.
* @returns {bigint} The timestamp in nanoseconds.
*/
export declare const toBigIntNanoSeconds: (date: Date) => bigint;