1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/perl -w
use EWS::Client;
use DateTime;
my $ews = EWS::Client->new({
server => 'daten.XX.YYY',
username => 'test',
password => 'blubb', # or set in $ENV{EWS_PASS}
});
my $start = DateTime->now();
my $end = DateTime->new(
year => 2014,
month => 10,
day => 1,
hour => 16,
minute => 12,
second => 47,
# nanosecond => 500000000,
# time_zone => 'Europe/Berlin',
);
my $entries = $ews->calendar->retrieve({
start => $start,
end => $end,
email => 'test@site.de',
});
print "I retrieved ". $entries->count ." items\n";
while ($entries->has_next) {
print $entries->next->Subject, "\n";
}
1;
QuoteCan't use an undefined value as an ARRAY reference at /usr/local/share/perl/5.10.1/EWS/Calendar/Role/RetrieveWithinWindow.pm line 12