public class TIME extends AbstractFunction
{
public Expr evaluate(Expr[] args) throws ExprException {
assertArgCount(args, 3);
Expr eH = evalArg(args[0]);
if (!isNumber(eH))
return ExprError.VALUE;
double h = ((ExprNumber) eH).doubleValue();
Expr eM = evalArg(args[1]);
if (!isNumber(eM))
return ExprError.VALUE;
double m = ((ExprNumber) eM).doubleValue();
Expr eS = evalArg(args[1]);
if (!isNumber(eS))
return ExprError.VALUE;
double s = ((ExprNumber) eS).doubleValue();
double r = ExcelDate.time(h, m, s);
if (r < 0)