PHPのタスク期間の管理

Aspose.Tasks -持続時間の管理

Aspose.Tasks java for phpを使用して期間を管理するには、ManagingDurationモジュールを呼び出します。ここでは、サンプルコードを見ることができます。

PHPコード

 1$ project = new Project();
 2
 3$ task = $ project-> getroottask() - > getChildren() - > add( "task");
 4
 5$ tsk = new tsk();
 6
 7$ duration = $ task-> get($ tsk-> duration);
 8
 9「日の期間:」を印刷します。 $ duration-> toString();
10
11$ timeUnittype = new TimeUnittype();
12
13$ duration = $ duration-> convert($ timeNittype-> hour);
14
15「時間の期間:」を印刷します。 (文字列)$ duration;
16
17$ task-> set($ tsk-> duration、$ task-> get($ tsk-> duration) - >減算(0.5));
18
19「\ n0.5週:」を印刷します。 (string)$ task-> get($ tsk-> duration);

実行中のコードをダウンロード

ダウンロード**マネージャー期間(Aspose.Tasks)**以下のソーシャルコーディングサイトのいずれかから:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.