timephasedDataType.setType(this.type);
timephasedDataType.setUID(this.id);
// System.out.println("Id is " + id);
timephasedDataType.setUnit(BigInteger.valueOf(3L));
HasStartAndEnd interval = (HasStartAndEnd)arg0;
Calendar startCal = DateTime.calendarInstance();
startCal.setTimeInMillis(DateTime.fromGmt(interval.getStart())); // for 2007, convert from gmt
Calendar endCal = DateTime.calendarInstance();
endCal.setTimeInMillis(DateTime.fromGmt(interval.getEnd())); // for 2007, convert from gmt
timephasedDataType.setStart(startCal);
timephasedDataType.setFinish(endCal);
double v = functor.getValue() / WorkCalendar.MILLIS_IN_HOUR;
net.sf.mpxj.Duration d = net.sf.mpxj.Duration.getInstance(v,TimeUnit.HOURS);
XsdDuration xsdDuration = new XsdDuration(d);