Author image Dmitry E. Oboukhov

NAME

DR::DateTime::Defaults - Default variables for DR::DateTime.

SYNOPSIS

    use DR::DateTime::Defaults;


    $http_server->hook(before_dispatch => sub {
        $DR::DateTime::Defaults::TZFORCE = '+0300';
    });

DESCRIPTION

The module contains variables that uses in DR::DateTime as defaults.

$TZ

Default value is +DDDD (Your local timezone).

$TZFORCE

If the variable is defined, all constructors of DR::DateTime will force timezone to the value.

You can use the feature for example for http-server.