Net::ICal::Trigger -- represent the TRIGGER property for VALARMs
use Net::ICal; # 5 minutes after the end of the event or to-do # DURATION is the default type, so it's optional $t = new Net::ICal::Trigger (300); $t = new Net::ICal::Trigger (new Net::ICal::Duration ("PT5M"), related => 'END'); # trigger for 7:30am, Jan 1st 2000 $t = new Net::ICal::Trigger (new Net::ICal::Time ('20000101T073000'));
Triggers are time markers, used most commonly for Alarms. They're attached to Times or Durations.
Get or set the type of the trigger. Valid options are
Get or set the relation of this alarm to the Event or Todo it is related to. This is only used for alarms that are related to an Event or Todo component, and its value must be a Duration. Valid options are
The Duration is relative to the start of the Event or Todo's Period
The Duration is relative to the end of the Event or Todo's Period
Net::ICal::Time, Net::ICal::Duration, Net::ICal::Alarm.
More information can be found in Net::ICal.
To install Net::ICal, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::ICal
CPAN shell
perl -MCPAN -e shell install Net::ICal
For more information on module installation, please visit the detailed CPAN module installation guide.