PHP의 캘린더 예외 작업
Contents
[
Hide
Show
]Aspose.Tasks- 캘린더 예외 추가
Aspose.Tasks java for php를 사용하여 달력 예외를 추가하려면 addcalendarexception 모듈을 호출하십시오. 여기에서 예제 코드를 볼 수 있습니다.
1$ project = 새 프로젝트 ( 'test_tasks.mpp');
2
3$ cal = $ project-> getCalendars ()-> tolist ()-> get (0);
4
5$ calexception = new CalendarException ();
6
7$ calendar = new Calendar ();
8
9$ calobject = $ calendar-> getInstance ();
10
11$ calobject-> set (2009, 1, 1, 0, 0, 0);
12
13$ calexception-> setfromdate ($ calobject-> gettime ());
14
15$ calobject-> set (2009, 1, 3, 0, 0, 0);
16
17$ calexception-> settodate ($ calobject-> gettime ());
18
19$ cal-> getExceptions ()-> add ($ calexception);
20
21인쇄 "추가 캘린더 예외";
github에서 작동 코드 예제를 다운로드 할 수 있습니다.