TV::Anytime::Event - Represent a television or radio program event


TV-Anytime documentation  | view source Contained in the TV-Anytime distribution.

Index


NAME

Top

TV::Anytime::Event - Represent a television or radio program event

SYNOPSIS

Top

  foreach my $event ($service->events) {
    print $event->start->datetime . " -> "
      . $event->stop->datetime . ": "
      . $event->program->title . "\n";
  }

DESCRIPTION

Top

The TV::Anytime::Event represents a television or radio event.

METHODS

Top

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:

  print $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

Top

TV::Anytime, TV::Anytime::Event, TV::Anytime::Service

BUGS

Top

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

Top

Leon Brocard acme@astray.com

LICENCE AND COPYRIGHT

Top


TV-Anytime documentation  | view source Contained in the TV-Anytime distribution.