CGI::Untaint::datetime - validate a date


NAME

CGI::Untaint::datetime - validate a date

Back to Top


SYNOPSIS

  use CGI::Untaint;
  my $handler = CGI::Untaint->new($q->Vars);
  my $date = $handler->extract(-as_datetime => 'timestamp');

Back to Top


DESCRIPTION

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

Back to Top


METHODS

is_valid

The actual validation check. See CGI::Untaint for more information.

Back to Top


SEE ALSO

the Time::Piece manpage. the CGI::Untaint manpage

Back to Top


AUTHOR

Marcus Ramberg <marcus@thefeed.no>

Back to Top


COPYRIGHT

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.

Back to Top

 CGI::Untaint::datetime - validate a date