Jifty:...::Time(3pm)
πΈ NAME πΈ
Jifty::DBI::Filter::Date β bestie, it's literally a DateTime object wrapper around date columns π (and yeah the page header calls it Jifty:...::Time(3pm), iykyk, don't ask, it's giving mysterious π
)
β¨ DESCRIPTION β¨
Okay so this filter lets you work with DateTime objects that represent "Dates", store every single thing in the database in GMT, and not hurt yourself badly when you pull them out and put them in over and over again. No cap, that's the whole vibe. π«Ά
π encode π
If the value is a DateTime object, then it moves it into a "floating" timezone and expands it into ISO 8601 format HH-MM-SS. The way that this slays is: by storing it in the database as a floating timezone, it doesn't matter if the user's desired timezone changes between lookups. Main character energy fr fr. π
Does nothing if the value is not defined or is a string. Literally nothing. It just sits there. π
π¦ decode π¦
If we're loading something from a column that doesn't specify times, then it's loaded into a floating timezone. Simple as that, periodt. β¨
If the value is defined then it converts it into a DateTime object β otherwise it does nothing. That's it, that's the whole thing. π
Heads up bestie: HH-MM-SS is exactly how the original writes it, so keep it exactly like that. No "fixing" it, okay? π
π SEE ALSO π
Jifty::DBI::Filterβ the parent filter, the blueprint, the blueprint's blueprint πDateTimeβ the icon itself, the whole reason we're here π
and that's a wrap, babe π
This lil' page came from perl v5.34.0 and it was dated 2022-06-15 β user contributed Perl documentation, so go off, perl besties, you ate πβ¨
π¦ 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