| 1 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | package Acme::PM::Barcelona::Meeting; | ||
| 5 | # ABSTRACT: When is the next meeting? | ||
| 6 | 1 | $Acme::PM::Barcelona::Meeting::VERSION = '0.05'; | |
| 7 | 1 | ▶ | use base 'DateTime::Set'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 1 | ▶ | use DateTime; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 1 | ▶ | use DateTime::Event::ICal; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | |||
| 12 | sub new { | ||
| 13 | 1 | ▶ | my $class = shift; |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 14 | |||
| 15 | # every last Thu of the month at 20:00 | ||
| 16 | 1 | my $self = DateTime::Event::ICal->recur( | |
| 17 | dtstart => DateTime->now, | ||
| 18 | freq => 'monthly', | ||
| 19 | byday => [ "-1th" ], | ||
| 20 | byhour => [ 20 ], | ||
| 21 | byminute => [ 0 ], | ||
| 22 | bysecond => [ 0 ], | ||
| 23 | ); | ||
| 24 | |||
| 25 | 1 | bless $self, $class; | |
| 26 | } | ||
| 27 | |||
| 28 | |||
| 29 | 1 | 1; # End of Acme::PM::Barcelona::Meeting | |
| 30 | |||
| 31 | __END__ | ||
| 32 | |||
| 33 | =pod | ||
| 34 | |||
| 35 | =encoding UTF-8 | ||
| 36 | |||
| 37 | =head1 NAME | ||
| 38 | |||
| 39 | Acme::PM::Barcelona::Meeting - When is the next meeting? | ||
| 40 | |||
| 41 | =head1 VERSION | ||
| 42 | |||
| 43 | version 0.05 | ||
| 44 | |||
| 45 | =head1 SYNOPSIS | ||
| 46 | |||
| 47 | use Acme::PM::Barcelona::Meeting; | ||
| 48 | |||
| 49 | my $barcelona_pm = Acme::PM::Barcelona::Meeting->new(); | ||
| 50 | print $barcelona_pm->next->datetime(), "\n"; | ||
| 51 | |||
| 52 | =head1 DESCRIPTION | ||
| 53 | |||
| 54 | This module helps finding when the next Barcelona Perl Mongers meeting | ||
| 55 | will take place. | ||
| 56 | |||
| 57 | =head1 USAGE | ||
| 58 | |||
| 59 | =over 4 | ||
| 60 | |||
| 61 | =item new | ||
| 62 | |||
| 63 | Creates a parent DateTime::Set object. All other methods are inherited. | ||
| 64 | |||
| 65 | =back | ||
| 66 | |||
| 67 | =head1 ACKNOWLEDGEMENTS | ||
| 68 | |||
| 69 | Barcelona Perl Mongers | ||
| 70 | |||
| 71 | =head1 AUTHOR | ||
| 72 | |||
| 73 | Alex Muntada <alexm@cpan.org> | ||
| 74 | |||
| 75 | =head1 COPYRIGHT AND LICENSE | ||
| 76 | |||
| 77 | This software is copyright (c) 2009,2016 by Alex Muntada. | ||
| 78 | |||
| 79 | This is free software; you can redistribute it and/or modify it under | ||
| 80 | the same terms as the Perl 5 programming language system itself. | ||
| 81 | |||
| 82 | =cut | ||