CGI::Untaint::datetime - validate a date
use CGI::Untaint; my $handler = CGI::Untaint->new($q->Vars); my $date = $handler->extract(-as_datetime => 'timestamp');
This Input Handler verifies that the input is a valid datetime, as specified by ISO 8601, that is, something resembling YYYY-MM-DDTHH:MM:SS it can even handle YYYY-MM-DD HH::MM::SS or YYYY-MM-D HH::MM
The actual validation check. See CGI::Untaint for more information.
Time::Piece. CGI::Untaint
Marcus Ramberg <marcus@thefeed.no>
Copyright (C) 2004 Marcus Ramberg. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install CGI::Untaint::datetime, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::Untaint::datetime
CPAN shell
perl -MCPAN -e shell install CGI::Untaint::datetime
For more information on module installation, please visit the detailed CPAN module installation guide.