NAME

Email::Store::Date - Provides a Time::Piece object representing a date for the mail

SYNOPSIS

Remember to create the database table:

% make install
% perl -MEmail::Store="..." -e 'Email::Store->setup'

And now:

print $mail->date->ymd,"\n";

or

$mail->year;
$mail->month;
$mail->day;

You can also search for all mails between two unix epochs

# get all mails in the last day
my $time = time();
my $day  = 24*60*60;
Email::Store::Mail->search_between($time, $time-$day);

SEE ALSO

Email::Store::Mail, Time::Piece.

AUTHOR

Simon Wistow, simon@thegestalt.org

This module is distributed under the same terms as Perl itself.