Rose::...::Time(3pm)
okay bestie, this is the Rose::...::Time(3pm) page from the User Contributed Perl Documentation, and it's about Rose::DB::Object::Metadata::Column::Time β Time column metadata. yes, we're doing database time-column lore today. π°οΈβ¨
πΈ NAME πΈ
Rose::DB::Object::Metadata::Column::Time β Time column metadata. that's the whole name, slay. π
β¨ SYNOPSIS β¨
use Rose::DB::Object::Metadata::Column::Time;
$col = Rose::DB::Object::Metadata::Column::Time->new(...);
$col->make_methods(...);
...
π¦ DESCRIPTION π¦
Objects of this class store and manipulate metadata for time columns in a database. The way this works: column metadata objects store information about columns (data type, size, etc.) and are responsible for creating object methods that manipulate column values. so it's not just vibes β it's metadata + method-making. π
This class inherits from Rose::DB::Object::Metadata::Column. Inherited methods that are not overridden will not be documented a second time here. for the full lore, see the Rose::DB::Object::Metadata::Column documentation. π«Ά
π§ METHOD MAP π§
"get_set"βRose::DB::Object::MakeMethods::Generic, date, ..."get"βRose::DB::Object::MakeMethods::Time, date, ..."get_set"βRose::DB::Object::MakeMethods::Time, date, ...
yes, get_set is listed twice with different make-method modules β first Rose::DB::Object::MakeMethods::Generic, then Rose::DB::Object::MakeMethods::Time. not me editing that out, bestie. π See the Rose::DB::Object::Metadata::Column documentation for an explanation of this method map. π
π OBJECT METHODS π
parse_value DB, VALUE π
Convert VALUE to the equivalent Time::Clock object. VALUE maybe returned unmodified if it is a valid time 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. fr fr, both. π
precision [INT] π
Get or set the precision of the time value. The precision is the total count of digits in the whole time. For example, 12:34 has a precision of 4, and 12:34:56.12 has a precision of 8. The precision value must be 2, 4, or greater than or equal to 6. The default precision is 6. When the precision is set, the scale is also set automatically. package deal, iconic. β¨
scale [INT] π
Get or set the integer number of places past the decimal point preserved for fractional seconds. The default scale is 0. When the scale is set, the precision is also set automatically. so yeah, precision and scale are lowkey linked. π
The page also puts Returns "time". right here, after the scale description and before the type method. keeping it exactly where it landed. π
type β
Returns "time". periodt. π
π AUTHOR π
John C. Siracusa (siracusa@gmail.com). π
π 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 π β sign-off time: this page is from perl v5.40.1, dated 2025-08-21, and it's the Rose::...::Time(3pm) page. bye bestie, go handle those time columns with main character energy. π«ΆπΈ
π¦ where this page comes from
- ubuntu resolute: librose-db-object-perl 1:0.822-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: librose-db-object-perl 1:0.822-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms