Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Rose::DB::Object::MakeMethods::Date 0.7662

    Download button

    No screenshots available
    Downloads: 315  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.1/5)
    12 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    John C. Siracusa | More programs
    GPL / FREE
    February 3rd, 2008, 06:17 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Rose::DB::Object::MakeMethods::Date description

    Rose::DB::Object::MakeMethods::Date is a Perl module to create date-related methods for Rose::DB::Object-derived objects.

    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');

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    date-related methods | Rose::DB objects | Perl module | date-related | methods | Rose::DB::Object

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM