Baseline Task Scheduling in PHP
Contents
[
Hide
Show
]Aspose.Tasks - Baseline Task Scheduling
To get Baseline Task Scheduling using Aspose.Tasks Java for PHP, simply invoke TaskBaselineSchedule module. Here you can see example code.
PHP Code
1$oneSecond = 10000000;
2$oneMinute = 60 * $oneSecond;
3$oneHour = 60 * $oneMinute;
4$project = new Project();
5$task = $project->getRootTask()->getChildren()->add("Task");
6$baselineType = new BaselineType();
7$project->setBaseline($baselineType->Baseline);
8$baseline = $task->getBaselines()->toList()->get(0);
9$duration = (double)(string)($baseline->getDuration());
10$baseline_duration = $duration / $oneHour;
11print $baseline_duration;
12print "Baseline Start: " . (string)$baseline->getStart();
13print "\nBaseline Finish: " . (string)$baseline->getFinish();
Download Running Code
Download Baseline Task Scheduling (Aspose.Tasks) from any of the below mentioned social coding sites: