NAME
TV::Anytime::Event - Represent a television or radio program event
SYNOPSIS
foreach
my
$event
(
$service
->events) {
$event
->start->datetime .
" -> "
.
$event
->stop->datetime .
": "
.
$event
->program->title .
"\n"
;
}
DESCRIPTION
The TV::Anytime::Event represents a television or radio event.
METHODS
duration
Returns the duration of the event, as a DateTime::Duration object:
my
$duration
=
$event
->duration;
program
Returns the program linked to the event as a TV::Anytime::Program object:
$event
->program->title .
"\n"
;
start
Returns the start time and date of the event as a DateTime object:
my
$start
=
$event
->start;
stop
Returns the stop time and date of the event as a DateTime object:
my
$stop
=
$event
->stop;
SEE ALSO
TV::Anytime, TV::Anytime::Event, TV::Anytime::Service
BUGS
Please report any bugs or feature requests to bug-TV-Anytime@rt.cpan.org
, or through the web interface at http://rt.cpan.org.
AUTHOR
Leon Brocard acme@astray.com
LICENCE AND COPYRIGHT
Copyright (c) 2005, Leon Brocard acme@astray.com
. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.