UNPKG

@enonic/mock-xp

Version:

Mock Enonic XP API JavaScript Library

14 lines (13 loc) 571 B
import type { Instant as InstantInterface } from '@enonic-types/lib-value'; export declare class Instant implements InstantInterface { private date; static convertInstantToDate(instant: Instant): Date; static convertToInstantEpochSeconds(jsDate: Date): number; static convertToInstantNanoseconds(jsDate: Date, useMicroseconds?: boolean): number; static convertToInstantMilliseconds(jsDate: Date): number; constructor(value: string | Date); getEpochSecond(): number; getNano(): number; toEpochMilli(): number; toString(): string; }