@@ -0,0 +1,1206 @@
+package osc.git.eh3.test;%0D%0A%0D%0Aimport java.text.ParseException;%0D%0Aimport java.text.ParsePosition;%0D%0Aimport java.text.SimpleDateFormat;%0D%0Aimport java.util.Date;%0D%0Aimport java.util.HashMap;%0D%0Aimport java.util.Map;%0D%0A%0D%0Apublic class TestCode %7B%0D%0A%0D%0A%09public static void main(String%5B%5D args) %7B%0D%0A%09%09// TODO Auto-generated method stub%0D%0A//%09%09String pathName = %22/dsp/archer/dddfd/jkjl%22;%0D%0A//%09%09%0D%0A//%09%09String projectName = pathName.substring(0, pathName.indexOf(%22archer%22));%0D%0A//%09%09%0D%0A//%09%09System.out.println(projectName);%0D%0A%09%09%0D%0A%09%09%0D%0A//%09%09SimpleDateFormat formatter = new SimpleDateFormat(%22yyyy-MM-dd%22);%0D%0A//%09%09ParsePosition pos = new ParsePosition(0);%0D%0A//%09%09System.out.println(formatter.parse(%22dsd%22, pos));%0D%0A%09%09%0D%0A//%09%09System.out.println(parseDate(%22%22) - 2232);%0D%0A%09%09%0D%0A%09%09%0D%0A%09%09%0D%0A%09%09Map%3CString, Object%3E resultMap = new HashMap%3CString, Object%3E();%0D%0A%09%09System.out.println((String)resultMap.get(%22dd%22));%0D%0A%09%09%0D%0A%09%7D%0D%0A%09public static Long parseDate(String s) %7B%0D%0A%09%09Long  time=null;%0D%0A%09%09if(s==null%7C%7C%22%22==s)%7B%0D%0A%09%09%09time = null;%0D%0A%09%09%7Delse%7B%0D%0A%09%09%09SimpleDateFormat format = new SimpleDateFormat(%22yyyy-MM-dd%22);%0D%0A%09%09%09try %7B%0D%0A%09%09%09%09Date date = format.parse(s);%0D%0A%09%09%09%09time  = date.getTime();%0D%0A%09%09%09%7D catch (ParseException e) %7B%0D%0A%09%09%09%09e.printStackTrace();%0D%0A%09%09%09%7D%0D%0A%09%09%7D%0D%0A%09%09return time;%0D%0A    %7D%0D%0A%7D

update test code