View Javadoc

1   package org.lsst.ccs.plugin.jas3.trending.timeselection;
2   
3   /**
4    *
5    * @author turri
6    */
7   public class TestCompiler {
8       
9       public static void main(String[] argv) throws Exception, Throwable {
10          
11          long gap = 3600;
12          String expression = "now - "+gap;
13          double result = 1000*TimeSelectionUtils.getSecondsForString(expression);
14          
15          long r1 = System.currentTimeMillis() - gap*1000;
16          
17          double delta = result - r1;
18          
19          System.out.println("Result is "+delta+" "+result);      
20      }  
21  }