e5be1ecbd29d87fc16df0d9aa45ec550d37948b5
Pure function bucketByDay(date, now?, locale?) returns one of 'today'|'yesterday'|'thisWeek'|'older' so ChronikTimeline can bucket activity rows by relative day without pulling a date library. Handles: - midnight boundary (startOfDay comparison) - locale-aware week start (Monday for most locales, Sunday for en-US, en-CA, en-PH, ja-JP, he-IL, pt-BR) - DST transitions (works off local calendar days) Part of #285. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Description
No description provided
Languages
Python
73.1%
TypeScript
11.5%
Java
10.9%
Svelte
4.2%
Shell
0.1%