XML::XQL::Date(3pm)

πŸ“¦
version 0.68 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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