<<

NAME

Koha::DateTime::Format::SQL - Parse SQL dates

SYNOPSIS

    $datetime = Koha::DateTime::Format::SQL->parse_datetime($sql_datetime_string);

API

Class methods

parse_datetime

Parse an SQL datetime string and returns a corresponding DateTime object

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

DateTime's time zone is automatically set to the configured timezone (or 'local' if none is configured), unless the year is 9999 in which case the timezone is 'floating'.

<<