Rose::...ToMonth(3pm)

okay bestie, welcome to the Rose::...ToMonth(3pm) page from the User Contributed Perl Documentation β€” and it's lowkey all about Datetime year to month column metadata. no cap, let's get into it πŸŽ€βœ¨

🌸 NAME 🌸

Rose::DB::Object::Metadata::Column::DatetimeYearToMonth β€” Datetime year to month column metadata. that's the whole name-and-description combo, and yes it's a mouthful πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

use Rose::DB::Object::Metadata::Column::DatetimeYearToMonth;

$col =
  Rose::DB::Object::Metadata::Column::DatetimeYearToMonth->new(...);

$col->make_methods(...);
...

πŸŽ€ DESCRIPTION πŸŽ€

okay so objects of this class store and manipulate metadata for datetime year to month columns in a database. column metadata objects store info about columns β€” like data type, size, etc. β€” and they're responsible for creating object methods that manipulate column values. very main character behavior, honestly πŸ‘‘

this class inherits from Rose::DB::Object::Metadata::Column::Datetime. inherited methods that are not overridden will not be documented a second time here, so if you need the full lore, see the Rose::DB::Object::Metadata::Column::Datetime documentation for more information 🫢

and the DateTime objects stored by this column type automatically have the day set to the first of the month. cute, consistent, iconic πŸŒ™

🌈 METHOD MAP 🌈

  • get_set β€” maps to Rose::DB::Object::MakeMethods::Date, datetime, with type => 'datetime year to month', interface => 'get_set', ...
  • get β€” maps to Rose::DB::Object::MakeMethods::Date, datetime, with type => 'datetime year to month', interface => 'get', ...
  • set β€” maps to Rose::DB::Object::MakeMethods::Date, datetime, with type => 'datetime year to month', interface => 'set', ...

see the Rose::DB::Object::Metadata::Column documentation for an explanation of this method map. iykyk ✨

πŸ’– OBJECT METHODS πŸ’–

parse_value DB, VALUE

convert VALUE to the equivalent DateTime object suitable for storage in a datetime year to month column. VALUE maybe returned unmodified if it is a valid datetime year to month keyword or otherwise has special meaning to the underlying database. DB is a Rose::DB object that is used as part of the parsing process. both arguments are required, so don't skip either one πŸ™ˆ

type

returns datetime year to month. that's it, that's the vibe check βœ…

🌟 AUTHOR 🌟

John C. Siracusa (siracusa@gmail.com) β€” author icon, honestly 🫑

πŸ‘‘ LICENSE πŸ‘‘

Copyright (c) 2010 by John C. Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


mwah πŸ’‹ β€” this page is from perl v5.40.1, dated 2025-08-21, and yes bestie, it's the Rose::...ToMonth(3pm) page. bye and slay πŸŽ€βœ¨

πŸ“¦ where this page comes from