Subversion Repository Public Repository

litesoft

Diff Revisions 823 vs 858 for /trunk/Java/core/Server/src/org/litesoft/util/Utils.java

Diff revisions: vs.
  @@ -5,9 +5,7 @@
5 5 import java.lang.reflect.*;
6 6 import java.net.*;
7 7 import java.sql.*;
8 - import java.text.*;
9 8 import java.util.*;
10 - import java.util.Date;
11 9
12 10 import org.litesoft.core.typeutils.*;
13 11 import org.litesoft.core.util.*;
  @@ -15,19 +13,17 @@
15 13 @SuppressWarnings({"UnusedDeclaration"})
16 14 public class Utils
17 15 {
18 - public static Timestamp getCurrentTimestamp()
16 + public static void pause( int pMillisecs )
17 + throws RuntimeInterruptedException
19 18 {
20 - return new Timestamp( new GregorianCalendar().getTimeInMillis() );
21 - }
22 -
23 - public static String formatYMDHMS( Date pStartTime )
24 - {
25 - return new SimpleDateFormat( "yyyy/MM/dd HH:mm:ss" ).format( pStartTime );
26 - }
27 -
28 - public static String formatYMDHMS4FileName( Date pStartTime )
29 - {
30 - return new SimpleDateFormat( "yyyyMMdd-HHmmss" ).format( pStartTime );
19 + try
20 + {
21 + Thread.sleep( pMillisecs );
22 + }
23 + catch ( InterruptedException e )
24 + {
25 + throw new RuntimeInterruptedException( e );
26 + }
31 27 }
32 28
33 29 public static String getLocalHostName()