XML::XQL::Date(3pm)
π XML::XQL::Date π
okay so bestie, welcome to XML::XQL::Date β part of the User Contributed Perl Documentation collection, and yes it lives in section 3pm like all the cool Perl module pages do. π
β¨ NAME β¨
XML::XQL::Date β adds an XQL::Node type for representing and comparing dates and times ποΈπ
πΈ SYNOPSIS πΈ
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);
likeβ¦ look at her. she's querying. she's comparing dates. she's iconic. π
π¦ DESCRIPTION π¦
Okay so here's the tea β β 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. And the way Date::Manip can parse almost any date or time format imaginable?? genuinely unhinged in the best way. πβ¨
ngl there's a lil caveat here: this was tested with Date::Manip 5.33, and it's for sure not working with 5.20 or lower. so if you're on ancient Date::Manipβ¦ no cap, it's not gonna slay. π
It also adds the XQL date function, which creates an XML::XQL::Date object from a string. π Wanna know how the date() function actually works? Go peek at XML::XQL::Tutorial, bestie, it's all described in there.
And here's the part where you get options π
β you can plug in your own Date type if you don't wanna use Date::Manip for some reason (valid, we don't judge π«Ά). For all the deets on that, check out XML::XQL and the XML::XQL::Date source file itself. iykyk. π
okay that's the whole page, you ate it, you understood it, periodt. ππ§
made with perl v5.36.0 energy on 2022-12-06, documented under the XML::XQL::Date(3pm) banner β love that for us. ππβ
π¦ where this page comes from
- debian bookworm: libxml-xql-perl 0.68-9 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libxml-xql-perl 0.68-9 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libxml-xql-perl 0.68-9 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libxml-xql-perl 0.68-9 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libxml-xql-perl 0.68-9 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms