NAME
DBIx::XMLServer::DateField - date field type
DESCRIPTION
This class implements the built-in date field type of DBIx::XMLServer. The where and value methods are overridden from the base class.
To use this field type, you must have the Date::Manip
package installed.
where method
$sql_expression = $date_field->where($condition);
The condition may consist of one of the comparison operators '=', '<', '>', '>=' or '<=' followed by a date. The date may be in any format understood by the Date::Manip
package, such as '1976-02-28' or 'two months ago'.
Alternatively, the condition may be empty, in which case the SQL expression is
<field> IS NOT NULL .
If the condition is the character '!', then the SQL expression is
<field> IS NULL .
value method
$date = $date_field->value(\@results);
The date is returned as 'YYYY-mm-dd', as required by the xsd:date type of XML Schema.
SEE ALSO
AUTHOR
Martin Bright <martin@boojum.org.uk>
COPYRIGHT AND LICENCE
Copyright (C) 2003-4 Martin Bright
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.