| CGI::Untaint::datetime - validate a date |
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.
the Time::Piece manpage. the CGI::Untaint manpage
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.
| CGI::Untaint::datetime - validate a date |