Skip to main content

stamp_upper_bound

Function stamp_upper_bound 

Source
pub fn stamp_upper_bound(input: &str) -> String
Expand description

The latest stamp a partial date names — "2026-03" becomes "2026-03-31-23-59-59" — for use as an inclusive window end.

The day defaults to 31 whatever the month holds: the stamp is compared lexicographically, so a bound past the month’s last day excludes nothing.