Exact Timestamp to Window
Use getWindowForInstant(...) when you have a real exact
timestamp and need the surrounding operational window.
Example
A true day-boundary demo for the common case where the app's operational day starts at 06:00 in Europe/London instead of midnight.
window.start.
For skipped times, repeated times, and DST duration drift, use the
dedicated DST critical-cases page.
Use getWindowForInstant(...) when you have a real exact
timestamp and need the surrounding operational window.
The same strategy can drive reports, exports, and dashboards without duplicating boundary logic in caller code. Events after midnight can still map to the previous operational bucket when they land before the next boundary.
| Resolved Window | Bucket Date | Events |
|---|
During DST transitions, the same labeled duration can end at a different exact instant depending on whether the rule means elapsed time or local wall-clock time. This panel is a quick operational reminder; the dedicated DST page goes deeper into skipped and repeated local times.
This operational-day example covers the highest-frequency business case: a workday that starts on a non-midnight boundary. The same primitive also protects you from the most expensive clock-change failures.
window.start.