Skip to content

ccusage / data-loader / getEarliestTimestamp

Function: getEarliestTimestamp()

ts
function getEarliestTimestamp(filePath): Promise<null | Date>;

Extract the earliest timestamp from a JSONL file Scans through the file until it finds a valid timestamp

Parameters

ParameterType
filePathstring

Returns

Promise<null | Date>

Released under the MIT License.