<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">NAME
    Mo::utils::TimeZone - Mo timezone utilities.

SYNOPSIS
     use Mo::utils::TimeZone qw(check_timezone_iana);

     check_timezone_iana($self, $key);

DESCRIPTION
    Mo timezone utilities for checking of data objects.

SUBROUTINES
  "check_timezone_iana"
     check_timezone_iana($self, $key);

    Check parameter defined by $key if it's valid IANA timezone code. Value
    could be undefined.

    Returns undef.

ERRORS
     check_timezone_iana():
             Parameter '%s' doesn't contain valid IANA timezone code.
                     Value: %s

EXAMPLE1
     use strict;
     use warnings;

     use Mo::utils::TimeZone qw(check_timezone_iana);

     my $self = {
             'key' =&gt; 'Europe/Prague',
     };
     check_timezone_iana($self, 'key');

     # Print out.
     print "ok\n";

     # Output:
     # ok

EXAMPLE2
     use strict;
     use warnings;

     use Error::Pure;
     use Mo::utils::TimeZone qw(check_timezone_iana);

     $Error::Pure::TYPE = 'Error';

     my $self = {
             'key' =&gt; 'BAD',
     };
     check_timezone_iana($self, 'key');

     # Print out.
     print "ok\n";

     # Output like:
     # #Error [...utils.pm:?] Parameter 'key' doesn't contain valid IANA timezone code.

DEPENDENCIES
    DateTime::TimeZone, Error::Pure, Exporter, Readonly.

SEE ALSO
    Mo  Micro Objects. Mo is less.

    Mo::utils
        Mo utilities.

    Wikibase::Datatype::Utils
        Wikibase datatype utilities.

REPOSITORY
    &lt;https://github.com/michal-josef-spacek/Mo-utils-TimeZone&gt;

AUTHOR
    Michal Josef �麖a�嶤k &lt;mailto:skim@cpan.org&gt;

    &lt;http://skim.cz&gt;

LICENSE AND COPYRIGHT
    穢 2024 Michal Josef �麖a�嶤k

    BSD 2-Clause License

VERSION
    0.03

</pre></body></html>