Jifty:...::Date(3pm)
π Jifty::DBI::Filter::Date π
okay bestie, so this is a page from the User Contributed Perl Documentation β it's Jifty::DBI::Filter::Date(3pm) and it's literally the moment your database stops being messy about dates. periodt.
β¨ NAME β¨
Jifty::DBI::Filter::Date</purl> β a DateTime object wrapper around date columns. it's giving glow-up for your date fields, fr fr. π
πΈ DESCRIPTION πΈ
This filter lets you work with DateTime objects that represent "Dates", stores literally everything in the database in GMT, and does not hurt you badly when you pull them out and put them back in repeatedly. no cap, that's the whole vibe. π
π¦ encode π¦
If the value is a DateTime object, it moves it into a "floating" timezone and expands it into ISO 8601 format:
YYYY-MM-DD
By storing it in the database as a floating timezone, it genuinely does not matter if the user's desired timezone changes between lookups. iconic behaviour honestly. π
Does nothing if the value is not defined, or if it's a string. she simply minds her business. π
π§ decode π§
If we're loading something from a column that doesn't specify times, then it gets loaded into a floating timezone. lowkey the cleanest way to do it.
If the value is defined, she converts it into a DateTime object. Otherwise? do nothing. that's it, that's the rule. β¨
β SEE ALSO β
Jifty::DBI::FilterDateTime
iykyk, go read those next bestie π«Ά
okay that's the whole page!! this came from perl v5.34.0, dated 2022-06-15, and the manual it lives in is Jifty:...::Date(3pm) β mwah, slay, go format some dates responsibly πβ¨πΈ
π¦ where this page comes from
- debian bookworm: libjifty-dbi-perl 0.78-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libjifty-dbi-perl 0.78-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libjifty-dbi-perl 0.78-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libjifty-dbi-perl 0.78-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libjifty-dbi-perl 0.78-3 Β· 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