DateTi...at::XSD(3pm)

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

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

  • DateTime
  • DateTime::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"


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>

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