The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Data::Sah::Compiler::perl::TH::date - perl's type handler for type "date"

VERSION

This document describes version 0.29 of Data::Sah::Compiler::perl::TH::date (from Perl distribution Data-Sah), released on 2014-06-30.

DESCRIPTION

What constitutes a valid date value:

  • DateTime object

  • integers from 100 million to 2^31

    For convenience, some integers are accepted and interpreted as Unix epoch (32 bit). They will be converted to DateTime objects during validation. The values correspond to dates from Mar 3rd, 1973 to Jan 19, 2038 (Y2038).

    Choosing 100 million (9 decimal digits) as the lower limit is to avoid parsing numbers like 20141231 (8 digit) as YMD date.

  • string in the form of "YYYY-MM-DD"

    For convenience, string of this form, like 2014-04-25 is accepted and will be converted to DateTime object. Invalid dates like 2014-04-31 will of course fail the validation.

  • string in the form of "YYYY-MM-DDThh:mm:ssZ"

    This is the Zulu form of ISO8601 date+time.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Data-Sah.

SOURCE

Source repository is at https://github.com/sharyanto/perl-Data-Sah.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Data-Sah

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Steven Haryanto.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.