Skip to main content

parse_mod_timestamp

Function parse_mod_timestamp 

Source
pub fn parse_mod_timestamp(raw: &str) -> Result<SystemTime>
Expand description

Parse a mod_timestamp string into a SystemTime.

Accepts:

  • Unix epoch seconds as an integer (e.g. "1704067200")
  • RFC 3339 / ISO 8601 datetime (e.g. "2024-01-01T00:00:00Z")