Your IP : 216.73.216.48
| Current Path : /usr/X11R6/bin/ |
|
|
| Current File : //usr/X11R6/bin/pilot-ietf2datebook |
#!/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";
}
}