UNPKG

lightningdevkit

Version:
35 lines (34 loc) 1.09 kB
import { Result_LSPSDateTimeNoneZ } from '../structs/Result_LSPSDateTimeNoneZ.mjs'; import { CommonBase } from './CommonBase.mjs'; /** * An object representing datetimes as described in bLIP-50 / LSPS0. */ export declare class LSPSDateTime extends CommonBase { clone_ptr(): bigint; /** * Creates a copy of the LSPSDateTime */ clone(): LSPSDateTime; /** * Checks if two LSPSDateTimes contain equal inner contents. * This ignores pointers and is_owned flags and looks at the values in fields. * Two objects with NULL inner values will be considered "equal" here. */ eq(b: LSPSDateTime): boolean; /** * Generates a non-cryptographic 64-bit hash of the LSPSDateTime. */ hash(): bigint; /** * Returns the LSPSDateTime as RFC3339 formatted string. */ to_rfc3339(): string; /** * Read a LSPSDateTime object from a string */ static constructor_from_str(s: string): Result_LSPSDateTimeNoneZ; /** * Get the string representation of a LSPSDateTime object */ to_str(): string; }