Skip to main content

validate_datetime

Function validate_datetime 

Source
pub fn validate_datetime(s: &str) -> Result<()>
Expand description

format: "datetime" — atproto ISO-8601 UTC, millisecond precision, Z.

The canonical shape is exactly YYYY-MM-DDTHH:MM:SS.mmmZ, and the fields are checked semantically (real month/day bounds incl. leap years, 24-hour clock), not just for separator positions.