<<

NAME

Koha::DateTime::Format::RFC3339 - Parse and format RFC3339 dates

SYNOPSIS

    $datetime = Koha::DateTime::Format::RFC3339->parse_datetime($rfc3339_datetime_string);
    $rfc3339_datetime_string = Koha::DateTime::Format::RFC3339->format_datetime($datetime);

API

Class methods

parse_datetime

Parse an RFC3339 datetime string and returns a corresponding DateTime object

    $datetime = Koha::DateTime::Format::RFC3339->parse_datetime($rfc3339_datetime_string);

format_datetime

Format a DateTime object into an RFC3339 datetime string

    $rfc3339_datetime_string = Koha::DateTime::Format::RFC3339->format_datetime($datetime);

Internal methods

_postprocess_datetime

Called by parse_datetime after parsing the datetime string.

It allows to change DateTime::new parameters just before parse_datetime calls it.

<<