1XML::XQL::Date(3) User Contributed Perl Documentation XML::XQL::Date(3)
2
3
4
6 XML::XQL::Date - Adds an XQL::Node type for representing and comparing
7 dates and times
8
10 use XML::XQL;
11 use XML::XQL::Date;
12
13 my $query = new XML::XQL::Query (Expr => "doc//timestamp[. < date('12/31/1999')]");
14 my @results = $query->solve ($doc);
15
17 This package uses the Date::Manip package to add an XQL node type
18 (called XML::XQL::Date) that can be used to represent dates and times.
19 The Date::Manip package can parse almost any date or time format
20 imaginable. (I tested it with Date::Manip 5.33 and I know for sure
21 that it doesn't work with 5.20 or lower.)
22
23 It also adds the XQL date function which creates an XML::XQL::Date
24 object from a string. See XML::XQL::Tutorial for a description of the
25 date() function.
26
27 You can plug in your own Date type, if you don't want to use
28 Date::Manip
29 for some reason. See XML::XQL and the XML::XQL::Date source file for
30 more details.
31
32
33
34perl v5.36.0 2022-07-22 XML::XQL::Date(3)