Rose::...::Epoch(3pm)

🌸 NAME 🌸

okay so bestie, this whole page is about Rose::DB::Object::Metadata::Column::Epoch(3pm) β€” the metadata class for columns that store seconds since the epoch. It's literally: "Seconds since the epoch column metadata." πŸ’…

✨ SYNOPSIS ✨

the vibe is very much:

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

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

πŸ¦‹ DESCRIPTION πŸ¦‹

Objects of this class store and manipulate metadata for columns in a database that store an integer number of seconds since the Unix epoch. Column metadata objects store information about columns (data type, size, etc.) and are responsible for creating object methods that manipulate column values. 🫢

This class inherits from Rose::DB::Object::Metadata::Column::Date. Inherited methods that are not overridden will not be documented a second time here. See the Rose::DB::Object::Metadata::Column::Date documentation for more information, iykyk 🌈

πŸ—ΊοΈ METHOD MAP πŸ—ΊοΈ

the method map is giving:

  • "get_set" β€” Rose::DB::Object::MakeMethods::Date, epoch, ...
  • "get" β€” Rose::DB::Object::MakeMethods::Date, epoch, ...
  • "get_set" β€” Rose::DB::Object::MakeMethods::Date, epoch, ...

and yes, "get_set" is listed twice up there β€” that's exactly how the original map rolls, so we're keeping both. no cap πŸ’€

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 DateTime object. VALUE maybe returned unmodified if it 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. πŸ’–

🌟 type

Returns "epoch". 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. πŸŽ€


this page lives in the User Contributed Perl Documentation, from perl v5.40.1, dated 2025-08-21 β€” bye bestie, mwah πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from