XML::XQL::Date(3pm)

XML::XQL::Date3pm

Adds an xql::node type for representing and comparing dates and times

Usage

 use XML::XQL;
 use XML::XQL::Date;
 my $query = new XML::XQL::Query (Expr => "doc//timestamp[. < date('12/31/1999')]");
 my @results = $query->solve ($doc);

Overview

This package uses the Date::Manip package to add an XQL node type (called XML::XQL::Date) that can be used to represent dates and times. The Date::Manip package can parse almost any date or time format imaginable. (I tested it with Date::Manip 5.33 and I know for sure that it doesn't work with 5.20 or lower.)

It also adds the XQL date function which creates an XML::XQL::Date object from a string. See XML::XQL::Tutorial for a description of the date() function.

You can plug in your own Date type, if you don't want to use Date::Manip
for some reason. See XML::XQL and the XML::XQL::Date source file for more details.

Releases

12 releases since Debian 3.0 (Woody); the text changed 4 times.

  1. 3.0
  2. 3.1–5.0
  3. 6.0–9
  4. 10–11
  5. 12–13

From libxml-xql-perl 0.68-9 in Debian 13 (Trixie). Parsed by carta from the page's man source.