DateTi...at::XSD(3pm)
π DateTime::Format::XSD β the Perl manual, but make it a group chat π
okay so bestie, this is DateTime::Format::XSD, a lil Perl module that formats your DateTime objects according to xsd:dateTime. that's it. that's the whole job. and it does it flawlessly. β¨
β¨ VERSION β¨
version 0.4 π
πΈ SYNOPSIS πΈ
the whole vibe, in one line:
my $str = DateTime::Format::XSD->format_datetime($dt);
yes girl, that's it. one call and you're done. no cap. π
π¦ DESCRIPTION π¦
so here's the tea, bestie β β XML Schema defines a usage profile that is a subset of the ISO8601 profile. and this profile is strict. like, stricter than your group chat's rules about spoilers. it says the following is the ONLY possible representation for a dateTime, despite all the other options ISO is out here offering:
YYYY-MM-DD"T"HH:MI:SS(Z|[+-]zh:zm)
literally the only one. ISO gives you options, XSD says "no <3" π«Ά
and here's the part you need to know: this module is a subclass of DateTime::Format::ISO8601. so what that means is β it can parse all the other ISO options (she's flexible, she's versatile, she contains multitudes β¨) but when it comes to formatting, she will only ever format it in this exact spec. parse like an icon, format like a rule-follower. π
π SEE ALSO π
DateTimeDateTime::Format::ISO8601- The XML Schema speficitation.
π BUG REPORTS π
found a bug? not you being the main character of QA πβ¨ please submit all bugs regarding "DateTime::Format::XSD" to "bug-datetime-format-xsd@rt.cpan.org"
π COPYRIGHT π
This software is copyright (c) 2004 by Daniel Ruoso.
π LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. π
π§ AUTHORS π§
- Daniel Ruoso <daniel@ruoso.com>
- Timothy Legge <timlegge@gmail.com>
β COPYRIGHT AND LICENSE β
This software is copyright (c) 2021 by Daniel Ruoso.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
ok and that's the whole page bestie, you ate that π
signing off from perl v5.34.0, dated 2022-06-30, and yeah the header truncated it to DateTi...at::XSD(3pm) because terminal life is humbling π but you know exactly what it is. mwah. ππ¦β¨
π¦ where this page comes from
- debian bookworm: libdatetime-format-xsd-perl 0.4-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libdatetime-format-xsd-perl 0.4-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libdatetime-format-xsd-perl 0.4-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libdatetime-format-xsd-perl 0.4-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libdatetime-format-xsd-perl 0.4-2 Β· 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