return null;
}
CalendarValue in = (CalendarValue)av1;
int nargs = argument.length;
DayTimeDurationValue tz;
if (nargs==1) {
return in.adjustTimezone(context.getImplicitTimezone());
} else {
AtomicValue av2 = (AtomicValue)argument[1].evaluateItem(context);
if (av2==null) {
return in.removeTimezone();
}
tz = (DayTimeDurationValue)av2;
long microseconds = tz.getLengthInMicroseconds();
if (microseconds%60000000 != 0) {
XPathException err = new XPathException("Timezone is not an integral number of minutes");
err.setErrorCode("FODT0003");
err.setLocator(this);
err.setXPathContext(context);