/**测试字符串时间
*
*/
@Test
public void testStrTime(){
String t1 = "2017-08-11 20:36:03";
String t2 = "2017-08-11 20:36:03";
if(t1.compareTo(t2)<0){
System.out.println("t1小于t2,t1时间在前");
}else if(t1.compareTo(t2)==0){
System.out.println("t1等于t2,时间一致");
}
else{
System.out.println("t1大于t2,t2时间在前");
}
}