Data::Sah::Compiler::perl::TH::date - perl's type handler for type "date"
This document describes version 0.29 of Data::Sah::Compiler::perl::TH::date (from Perl distribution Data-Sah), released on 2014-06-30.
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.
2014-04-25
2014-04-31
string in the form of "YYYY-MM-DDThh:mm:ssZ"
This is the Zulu form of ISO8601 date+time.
Please visit the project's homepage at https://metacpan.org/release/Data-Sah.
Source repository is at https://github.com/sharyanto/perl-Data-Sah.
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.
Steven Haryanto <stevenharyanto@gmail.com>
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.
To install Data::Sah, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Sah
CPAN shell
perl -MCPAN -e shell install Data::Sah
For more information on module installation, please visit the detailed CPAN module installation guide.