Acme-PM-Paris-Meetings
view release on metacpan or search on metacpan
lib/Acme/PM/Paris/Meetings.pm view on Meta::CPAN
=head2 recurrence
Returns a new DateTime::Set from which you can get the date/time of the planned
Paris.pm meeting for the following months.
=cut
sub recurrence
{
my $dtstart = @_
? $_[0]
: DateTime->now(time_zone => 'Europe/Paris',
locale => 'fr_FR')
->truncate(to => 'day');
DateTime::Format::ICal->parse_recurrence(
recurrence => ical(),
dtstart => $dtstart,
);
}
=head2 next_meeting
Convenience function that returns the date/time of the next Paris.pm meeting
as a string formatted for french humans.
An internal recurrence object is maintained so if you call the method multiple times,
you will get different results.
( run in 0.308 second using v1.01-cache-2.11-cpan-05444aca049 )