NAME

Date::Remind::Event - Manipulate 'remind' output with Perl

SYNOPSIS

use Date::Remind::Event;

my $e = Date::Remind::Event->new(
  '2010/08/15 * * * * My Event'
);

print 'Start:       ' . $e->date->hms . "\n";
print 'Duration:    ' . $e->duration->minutes . "min\n";
print 'Description: ' . $e->body . "\n";

DESCRIPTION

Date::Remind::Event provides a Perl object interface to textual events emitted by remind(1).

CONSTRUCTOR

new($text) => Date::Remind::Event

Converts $text into a single Date::Remind::Event object. $text is expected to be a line of the output produced by the '-s' argument to remind(1), as defined in the rem2ps(1) manpage under "REM2PS INPUT FORMAT".

ATTRIBUTES

date => DateTime

The start of the event.

duration => DateTime::Duration

The length of the event.

end => DateTime

The end of the remind event.

tag => string

The TAG value of the event.

body => string

The body of the remind event.

SEE ALSO

DateTime, DateTime::Duration, remind(1), rem2ps(1)

AUTHOR

Mark Lawrence <nomad@null.net>

COPYRIGHT AND LICENSE

Copyright 2010 Mark Lawrence <nomad@null.net>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.