my $csv = Text::CSV_XS->new();
-print 'id,description,allocated,start,end,"percent complete"' . "\n";
+print 'id,description,allocated,start,end,"duration (s)","percent complete"' . "\n";
for my $tasks ($root->findnodes('/project/tasks')) {
find_tasks($tasks);
push @fields,
date_convert($task->findvalue('@start')),
date_convert($task->findvalue('@end')),
+ $task->findvalue('@work'),
$task->findvalue('@percent-complete');
$csv->combine (@fields);