DateTi...uration(3pm)
π DateTime::Format::Natural::Duration β the group chat lore π
okay bestie, so this is one of those internal pages from User Contributed Perl Documentation, the 3pm corner of the perl manual. It's the DateTime::Format::Natural::Duration page, which means it's the duration-handling brain cell of the whole DateTime::Format::Natural friend group. It's not the main character, it's the bestie behind the main character. iykyk. π
β¨ SYNOPSIS β¨
Please see the DateTime::Format::Natural documentation.
that's it. that's the whole synopsis. she said "go read the parent page, bestie, this one isn't for you." π
πΈ DESCRIPTION πΈ
so the DateTime::Format::Natural::Duration class is doing a lot of quiet little jobs behind the scenes, and honestly? obsessed.
- it contains code to alter tokens before parsing β like it's doing a little vibe check on the tokens and fixing them up before the parser even looks at them β¨
- it also has code to insert DateTime objects in the resulting queue β yes queen, sliding whole objects into the queue like she owns the place π
- and furthermore, there's code to save the state of the first failing parse and restore it after the duration has been processed β okay so it's literally memory-keeping, it remembers the first parse that flopped, holds onto that state, and puts it back once the duration is done being processed. like a bestie holding your drink while you're on stage. π«Ά
no cap, that's the entire described behavior. every single bit of it. she's small but she's mighty. π¦
π SEE ALSO π
DateTime::Format::Natural
go there. that's the main character. this page is the supporting cast and she knows it. π
π AUTHOR π
Steven Schubiger <schubiger@cpan.org>
the icon who wrote all of this. give her her flowers. π
π LICENSE π
This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
See <http://dev.perl.org/licenses/>
so like β go forth, redistribute, modify, do your thing, as long as you match Perl's own terms. and there's a handy link if you want the β¨ paperwork. β¨
okay that's the whole page, bestie, and it's giving short but iconic. π
quick sign-off before you go: this was perl v5.40.1, dated 2026-06-07, and the page lives under the name DateTi...uration(3pm) β yeah, the title got truncated, that's just the man page doing its little truncation thing, not me being mysterious. π mwah, go read DateTime::Format::Natural. πβ¨π§
π¦ where this page comes from
- ubuntu stonking: libdatetime-format-natural-perl 1.27-1 Β· 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