DBIx::...ateTime(3pm)

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

πŸ’– DBIx::...ateTime β€” User Contributed Perl Documentation πŸŽ€

okay so bestie, buckle up, because we're looking at DBIx::...ateTime(3pm) and it's giving tiny but mighty. This is a DateTime helper for your DBIx::Class schema and honestly? She's lowkey iconic. πŸ’…


✨ NAME ✨

DBIx::Class::Helper::Schema::DateTime β€” it's a DateTime helper, periodt. πŸ•°οΈπŸ’–


🌸 SYNOPSIS 🌸

here's the vibe, fr fr:

package MyApp::Schema;

__PACKAGE__->load_components('Helper::Schema::DateTime');

...

$schema->resultset('Book')->search({
  written_on => $schema->format_datetime(DateTime->now)
});

see how she loads the component and then just casually formats a DateTime->now right into a search? main character energy honestly. πŸ‘‘


πŸ¦‹ AUTHOR πŸ¦‹

Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com> β€” the literal genius behind this. 🫢


This software is copyright (c) 2024 by Arthur Axel "fREW" Schmidt.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, legally speaking. βš–οΈβœ¨


no cap, that's the whole page. small, cute, does exactly one thing, and does it flawlessly. πŸ“

and that's a wrap, bestie πŸ’œ β€” this was DBIx::...ateTime(3pm) from the User Contributed Perl Documentation, running on perl v5.40.0, dated 2024-11-16. mwah, go format some datetimes πŸ’‹πŸŒΈ

πŸ“¦ where this page comes from