Help for this page

Select Code to Download


  1. or download this
    use Time::Piece::MySQL;
    use Date::Parse;
    ...
        },
        deflate => 'mysql_datetime',
    );
    
  2. or download this
    package MyTime;
    
    ...
                 'fallback' => undef;
    
    1;
    
  3. or download this
    package MyDBI::Table;
    
    ...
        },
        deflate => 'mysql_datetime',
    );
    
  4. or download this
    my $t = MyDBI::Table->retrieve(1);
    print $t->date, "\n";
    ...
    print $t->date, "\n";
    $t->date('07/08/2003'); # read as MM/DD/YYYY
    print $t->date, "\n";