Strabon

changeset 684:5221af947637

removed some printouts seem to be ok now
author Konstantina Bereta <Konstantina.Bereta@di.uoa.gr>
date Fri Nov 02 13:50:36 2012 +0200 (2012-11-02)
parents 580a09bb600c
children 706b99be9078
files evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/link/AddDateTimeFunc.java
line diff
     1.1 --- a/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/link/AddDateTimeFunc.java	Fri Nov 02 00:41:01 2012 +0200
     1.2 +++ b/evaluation/src/main/java/org/openrdf/query/algebra/evaluation/function/link/AddDateTimeFunc.java	Fri Nov 02 13:50:36 2012 +0200
     1.3 @@ -54,7 +54,6 @@
     1.4      	try {
     1.5      		// get minutes, remove possible appearance of integer datatype, and strip double quotes
     1.6      		String minutes = args[1].toString().replace("^^<http://www.w3.org/2001/XMLSchema#integer>", "").replace("\"", "");
     1.7 -    		System.out.println("TO PARSE:"+ minutes);
     1.8      		int minutesToAdd = Integer.parseInt(minutes);
     1.9      		
    1.10      	    String date = args[0].toString();
    1.11 @@ -64,20 +63,9 @@
    1.12      	    
    1.13      	    // set the time (according to 1st argument)
    1.14      		cal.setTime(sdf.parse(date));
    1.15 -    		System.out.println("OLD TIME:"+cal.getTime());
    1.16 -    		
    1.17      		// add the minutes (according to 2nd argument)
    1.18      		cal.add(Calendar.MINUTE, minutesToAdd);
    1.19 -
    1.20 -    		System.out.println("NEW TIME:"+cal.getTime());
    1.21 -    	   
    1.22 -    		System.out.println(cal.get(Calendar.YEAR));
    1.23 -    		System.out.println(cal.get(Calendar.MONTH));
    1.24 -    		System.out.println(cal.get(Calendar.DAY_OF_MONTH));
    1.25 -    		System.out.println(cal.get(Calendar.HOUR));
    1.26 -    		System.out.println(cal.get(Calendar.MINUTE));
    1.27 -    		System.out.println(cal.get(Calendar.MILLISECOND));
    1.28 -    		
    1.29 +		
    1.30      	} catch (java.text.ParseException e) {
    1.31      		logger.error("[Strabon.AddDateTimeFunc] Error parsing the arguments of \"addDateTime\" extension function.", e);
    1.32  		}
    1.33 @@ -91,7 +79,7 @@
    1.34  		}
    1.35  		
    1.36  		Value value =  valueFactory.createLiteral(gxml);
    1.37 -		System.out.println("value="+value.toString());
    1.38 +//		System.out.println("value="+value.toString());
    1.39  		return value;
    1.40      }
    1.41  }