Skip to main content

step_date

Function step_date 

Source
pub fn step_date(s: &str, delta_days: i64) -> Option<String>
Expand description

Add delta_days to the date in s. An RFC3339 value keeps its offset, seconds and fractions; YYYY-MM-DDTHH:MM:SS keeps its seconds; a date-only value stays date-only; other forms step to YYYY-MM-DDTHH:MM. None leaves the caller’s buffer untouched (unparseable input or overflow).