line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
701130
|
use warnings; |
|
1
|
|
|
|
|
11
|
|
|
1
|
|
|
|
|
47
|
|
2
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
52
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package Acme::PM::Barcelona::Meeting; |
5
|
|
|
|
|
|
|
# ABSTRACT: When is the next meeting? |
6
|
|
|
|
|
|
|
$Acme::PM::Barcelona::Meeting::VERSION = '0.06'; |
7
|
1
|
|
|
1
|
|
7
|
use base 'DateTime::Set'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
106
|
|
8
|
1
|
|
|
1
|
|
14
|
use DateTime; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
23
|
|
9
|
1
|
|
|
1
|
|
6
|
use DateTime::Event::ICal; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
101
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub new { |
13
|
1
|
|
|
1
|
1
|
145
|
my $class = shift; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
# every last Thu of the month at 20:00 |
16
|
1
|
|
|
|
|
12
|
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
|
|
|
|
|
3627
|
bless $self, $class; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
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.06 |
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-2021 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 |