Help for this page

Select Code to Download


  1. or download this
    my $class=__PACKAGE__;
    $class->has_a
    ...
       date=>'DateTime::Format::MySQl',
       inflate=>sub {DateTime::Format::MySQL->parse_datetime(shift)}
       );
    
  2. or download this
    $obj->date->year;  # or whatever, see perldoc DateTime