Rose DB Object MakeMethods Date
Details
| Last Update: | 2008-02-02 23:01:13 |
| Version: | Rose::DB::Object |
| License/Program Type: | GPL (GNU General Public License) |
| Publisher: | John C. Siracusa |
| Price: | $0.00 |
Description:
Rose::DB::Object::MakeMethods::Date is a Perl module to create
date-related methods for Rose::DB::Object-derived objects.
SYNOPSIS
package MyDBObject;
use base 'Rose::DB::Object';
use Rose::DB::Object::MakeMethods::Date
(
date =>
[
'start_date',
'end_date' => { default => '2005-01-30' }
],
datetime =>
[
'date_created',
'other_date' => { type => 'datetime year to minute'
},
],
timestamp =>
[
'last_modified' => { default => '2005-01-30
12:34:56.123' }
],
epoch =>
[
due_date => { default => '2003-01-02 12:34:56' },
event_start => { hires => 1 },
],
);
...
$o->start_date('2/3/2004 8am');
$dt = $o->start_date(truncate => 'day');
print $o->end_date(format => '%m/%d/%Y');
2005-01-30
$o->date_created('now');
$o->other_date('2001-02-20 12:34:56');
02/20/2001 12:34:00
print $o->other_date(format => '%m/%d/%Y
%H:%M:%S');
print $o->last_modified(format => '%S.%5N');
56.12300
print $o->due_date(format => '%m/%d/%Y');
01/02/2003
$o->event_start('1980-10-11 6:00.123456');
Requirements:
· Perl
0 comments
Add to
Rose DB Object MakeMethods Date Version History
Related Software
|
|
From category: Quality-Assurance-and-Testing |
| Acovea 1.0.1 is quality assurance and testing software developed by Scott Robert Ladd. Acovea implements a genetic algorithm for finding the \"best\" options for compiling programs with the GCC C a... |
|
|
From category: Libraries |
| Audio::TagLib::Tag 1.42 is libraries software developed by Dongxu Ma. Audio::TagLib::Tag is a simple, generic interface to common audio meta data fields. This is an attempt to abstract away... |
|
|
From category: Libraries |
| CoreLinux++ Function Load Library 0.1.1 is libraries software developed by CoreLinux Consortium. CoreLinux++ Function Load Library (libclfll++) takes advantage of the abstract Library Load framewor... |
|
|
From category: Libraries |
| Bigtop::Docs::TentRef 0.15 is libraries software developed by Phil Crow. Bigtop::Docs::TentRef is a Perl module for tentmaker reference (best viewed in html). Intro If you haven\'t us... |
|
|
From category: Libraries |
| Chart::Graph 3.2 is libraries software developed by CAIDA Perl development team. Chart::Graph is a Perl extension for a front-end to gnuplot, XRT, and Xmgrace. SYNOPSIS EXAMPLE: gn... |
|
|
From category: Libraries |
| Firebolt 0.3.6 is libraries software developed by Kostas Katsamakas. Firebolt is a network protocol oriented library. Our goal is to create a simple and well designed object oriented network... |
|
|
From category: Libraries |
| DateTime::Format::Epoch 0.10 is libraries software developed by Eugene van der Pijli. DateTime::Format::Epoch is a Perl module that can convert DateTimes to/from epoch seconds. SYNOPSIS \... |
|
|
From category: Code-Generators |
| Dragon parser generator 1.2.5 is code generators software developed by Lemke IT. Dragon is a powerful parser generator. It produces a consequent, object-oriented, integrated scanner and parser solu... |
|
|
From category: Perl-Modules |
| Bundle::Delivery contains modules required to run the Delivery and/or Tapestry web-publishing applications.... |
|
|
From category: Libraries |
| Authorize.net AIM Client 1.0 is libraries software developed by Blaine Simpson. Authorize.net AIM Client is a PHP client for the AIM API for Authorize.net. Authorize.net customers can use t... |
|
|
From category: Libraries |
| Bio::TreeIO::svggraph 1.4 is libraries software developed by Brian Oconnor. Bio::TreeIO::svggraph is a simple output format that converts a Tree object to an SVG output. SYNOPSIS us... |
|
|
From category: Libraries |
| C::DynaLib::Struct 0.55 is libraries software developed by John Tobey. C::DynaLib::Struct is a tool for handling the C `struct\' data type. SYNOPSIS use C::DynaLib::Struct;... |
|
|
From category: Libraries |
| FireProfile 0.1.2 is libraries software developed by Ian Gulliver. FireProfile is a C library for identifying bottlenecks in programs that use MySQL. FireProfile can be LD_PRELOAD\'ed in before the... |
|
|
From category: Assembler-Tools |
| Avango 1.0.1 is assembler tools software developed by Jurgen Wind. Data distribution is achieved by transparent replication of a shared scene graph among the participating processes of a distribute... |
|
|
From category: Debuggers |
| Minibug is a simple debugger that runs in the console.... |
Leave a comment