« Object/Metadata/Column/DatetimeYearToFraction5.pm
↑ Summary
Object/Metadata/Column/Epoch/HiRes.pm »
| 1 | package Rose::DB::Object::Metadata::Column::Epoch; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | |||
| 5 | use Rose::DB::Object::MakeMethods::Date; | ||
| 6 | |||
| 7 | use Rose::DB::Object::Metadata::Column::Date; | ||
| 8 | our @ISA = qw(Rose::DB::Object::Metadata::Column::Date); | ||
| 9 | |||
| 10 | our $VERSION = '0.788'; | ||
| 11 | |||
| 12 | foreach my $type (__PACKAGE__->available_method_types) | ||
| 13 | { | ||
| 14 | __PACKAGE__->method_maker_class($type => 'Rose::DB::Object::MakeMethods::Date'); | ||
| 15 | __PACKAGE__->method_maker_type($type => 'epoch'); | ||
| 16 | } | ||
| 17 | |||
| 18 | sub type { 'epoch' } | ||
| 19 | |||
| 20 | sub should_inline_value { 0 } | ||
| 21 | |||
| 22 | sub format_value { $_[2]->epoch } | ||
| 23 | |||
| 24 | 1; | ||
| 25 | |||
| 26 | __END__ |