UNPKG

@fairdatasociety/fdp-lokijs-adapter

Version:
10 lines (9 loc) 424 B
export declare const getCurrentTime: (d?: Date) => number; /** * Calculates nearest index * @param initialTime initial time of streaming feed * @param updatePeriod streaming feed frequency in milliseconds * @param lookupTime lookup time * @returns Returns -1 if not found, otherwise the index */ export declare const getIndexForArbitraryTime: (lookupTime: number, initialTime: number, updatePeriod: number) => number;