Skeudenn / lib/reading-stats / periodKey
Function: periodKey() ​
periodKey(
date,period):string
Defined in: src/lib/reading-stats.ts:72
The key of the local week, month or year a date falls in: YYYY-MM-DD of the week's Monday, YYYY-MM or YYYY.
Parameters ​
date ​
Date
period ​
Returns ​
string