NAME
Data::Sah::Compiler::perl::TH::date - perl's type handler for type "date"
VERSION
version 0.23
RELEASE DATE
2014-04-25
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 like2014-04-31
will of course fail the validation.
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.