/usr/bin/pilot-ietf2datebook is in pilot-link 0.12.5-6ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/usr/bin/env perl
while (<>) {
chomp;
if (/^(MONDAY|TUESDAY|WEDNESDAY|THURSDAY|FRIDAY|SATURDAY|SUNDAY)\s*,\s*(January|February|March|April|June|July|August|September|October|November|December)\s*(\d+)\s*,\s*(\d+)\s*$/) {
$date = "$2 $3, $4";
} elsif (/^(\d\d\d\d)-(\d\d\d\d)\s*(.*)$/) {
$timestart = $1;
$timeend = $2;
$header = $3;
printf("$date $timestart GMT+300\t$date $timeend GMT+300\t\t$header\n");
} elsif (/^\s*$/) {
} elsif (/^\s*(.*)$/) {
printf("$date $timestart GMT+300\t$date $timeend GMT+300\t\t$header: $1\n");
} else {
die "Internal error";
}
}
|