zeus-time
Version:
A next-gen, deterministic timekeeping standard. UNIX is dead. ZEUS lives.
14 lines (13 loc) • 512 B
TypeScript
/**
* Converts a UNIX timestamp (seconds) to a ZEUS hash.
* @param unixTime UNIX timestamp in seconds.
* @returns ZEUS hash equivalent.
*/
export declare function unixToZeus(unixTime: number): Promise<string>;
/**
* Converts a ZEUS time hash back to a readable ISO timestamp.
* NOTE: One-way hashing means original timestamp cannot be reconstructed.
* @param zeusHash ZEUS time hash.
* @returns An estimated corresponding UNIX timestamp.
*/
export declare function zeusToUnix(zeusHash: string): number;