@Test public void testme(){ String s1 = TimeUtil.currentTimeString(); Assert.assertEquals("yyyy-MM-dd HH:mm:ss".length(), s1.length()); }
public static String currentTimeString(){ if( standardFormat == null ){ standardFormat = new SimpleDateFormat(STANDARD_PATTERN); } return standardFormat.format(new Date()); }
TimeUtil { public static String currentTimeString(){ if( standardFormat == null ){ standardFormat = new SimpleDateFormat(STANDARD_PATTERN); } return standardFormat.format(new Date()); } }
TimeUtil { public static String currentTimeString(){ if( standardFormat == null ){ standardFormat = new SimpleDateFormat(STANDARD_PATTERN); } return standardFormat.format(new Date()); }  }
TimeUtil { public static String currentTimeString(){ if( standardFormat == null ){ standardFormat = new SimpleDateFormat(STANDARD_PATTERN); } return standardFormat.format(new Date()); }  static final long currentTimeSecond(); static String currentTimeString(); static String currentTimeString(String pattern); }
TimeUtil { public static String currentTimeString(){ if( standardFormat == null ){ standardFormat = new SimpleDateFormat(STANDARD_PATTERN); } return standardFormat.format(new Date()); }  static final long currentTimeSecond(); static String currentTimeString(); static String currentTimeString(String pattern); static final String STANDARD_PATTERN; static SimpleDateFormat standardFormat; }