Jifty:...::Time(3pm)

πŸ“¦
version 0.78 Β· 2 versions
  • 0.78 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.78 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

🌸 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