Skip to content

desktop/src-tauri/crates/core/tests/calendar_v04.rs

Comment 1, line 1

desktop/src-tauri/crates/core/tests/calendar_v04.rs:1

//! V04: midnight, leap days, ISO week-year boundaries, Sunday starts and 23/25-hour DST days.

Comment 2, line 2

desktop/src-tauri/crates/core/tests/calendar_v04.rs:2

//! Half-open intervals, correct week-year/local dates and distinguishable repeated hours.

Comment 3, line 36

desktop/src-tauri/crates/core/tests/calendar_v04.rs:36

/// A request spanning midnight defaults to the local day containing completion.

Comment 4, line 40

desktop/src-tauri/crates/core/tests/calendar_v04.rs:40

// UTC start 23:55 on day1; completion 00:10 on day2.

Comment 5, line 65

desktop/src-tauri/crates/core/tests/calendar_v04.rs:65

/// Leap day 2024-02-29 is valid; half-open endpoints select the correct day.

Comment 6, line 70

desktop/src-tauri/crates/core/tests/calendar_v04.rs:70

// Exactly the start of February 29.

Comment 7, line 72

desktop/src-tauri/crates/core/tests/calendar_v04.rs:72

// Exactly the start of March 1.

Comment 8, line 96

desktop/src-tauri/crates/core/tests/calendar_v04.rs:96

/// 2025-12-29 through 2026-01-04 is ISO 2026-W01; labels include the week-year.

Comment 9, line 128

desktop/src-tauri/crates/core/tests/calendar_v04.rs:128

/// Sunday-start weeks use their start date as the label.

Comment 10, line 152

desktop/src-tauri/crates/core/tests/calendar_v04.rs:152

// Sunday-start week begins 2025-12-28; its start date is its label.

Comment 11, line 158

desktop/src-tauri/crates/core/tests/calendar_v04.rs:158

/// America/New_York DST gives 23 hours on 2026-03-08 and 25 hours on 2026-11-01.

Comment 12, line 159

desktop/src-tauri/crates/core/tests/calendar_v04.rs:159

/// Repeated-hour instants have different UTC offsets but belong to the same local day.

Comment 13, line 164

desktop/src-tauri/crates/core/tests/calendar_v04.rs:164

// Spring advance: 2026-03-08 02:00 does not exist; this local day has 23 hours.

Comment 14, line 167

desktop/src-tauri/crates/core/tests/calendar_v04.rs:167

// Instants on both sides of the gap belong to 2026-03-08.

Comment 15, line 171

desktop/src-tauri/crates/core/tests/calendar_v04.rs:171

// Local time 01:30 EST.

Comment 16, line 175

desktop/src-tauri/crates/core/tests/calendar_v04.rs:175

// Local time 03:30 EDT.

Comment 17, line 177

desktop/src-tauri/crates/core/tests/calendar_v04.rs:177

// Fall retreat: 2026-11-01 has 25 hours; 01:30 occurs twice with different offsets.

Comment 18, line 180

desktop/src-tauri/crates/core/tests/calendar_v04.rs:180

// Local time 01:30 EDT (UTC-4).

Comment 19, line 181

desktop/src-tauri/crates/core/tests/calendar_v04.rs:181

// Local time 01:30 EST (UTC-5).

Comment 20, line 187

desktop/src-tauri/crates/core/tests/calendar_v04.rs:187

// Full ingestion/query path groups both repeated-hour events into the same local day.

Comment 21, line 213

desktop/src-tauri/crates/core/tests/calendar_v04.rs:213

/// The UTC interval for a week spanning DST covers the complete half-open week.

Comment 22, line 217

desktop/src-tauri/crates/core/tests/calendar_v04.rs:217

// Monday-start week containing 2026-11-01: 2026-10-26 through 2026-11-01.

Comment 23, line 223

desktop/src-tauri/crates/core/tests/calendar_v04.rs:223

// This week contains a 25-hour day: 7*24+1 hours in total.