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
Parameter | Type |
---|---|
filePath | string |
Returns
Promise
<null
| Date
>