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 Uses streaming to handle large files without loading entire content into memory
Parameters
| Parameter | Type |
|---|---|
filePath | string |
Returns
Promise<null | Date>