Koha::DateTime::Format::RFC3339 - Parse and format RFC3339 dates
$datetime = Koha::DateTime::Format::RFC3339->parse_datetime($rfc3339_datetime_string); $rfc3339_datetime_string = Koha::DateTime::Format::RFC3339->format_datetime($datetime);
Parse an RFC3339 datetime string and returns a corresponding DateTime object
$datetime = Koha::DateTime::Format::RFC3339->parse_datetime($rfc3339_datetime_string);
Format a DateTime object into an RFC3339 datetime string
$rfc3339_datetime_string = Koha::DateTime::Format::RFC3339->format_datetime($datetime);
Called by parse_datetime
after parsing the datetime string.
It allows to change DateTime::new
parameters just before parse_datetime
calls it.