compute_calendar_heatmap

Function compute_calendar_heatmap 

Source
pub fn compute_calendar_heatmap(
    timestamps: &[u64],
    weeks: usize,
    now: u64,
) -> Vec<Vec<usize>>
Expand description

Compute a GitHub-style calendar heatmap (weekday x week-column). Returns grid[7][weeks] as Vec<Vec> with rows=Sun..Sat, cols=old->new (weeks).