mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
add utility date formatting functions
This commit is contained in:
parent
bc33d0b81f
commit
1493895428
1 changed files with 12 additions and 0 deletions
|
@ -145,6 +145,18 @@ public class DbgUtils {
|
|||
}
|
||||
}
|
||||
|
||||
public static String secondsToDateStr( long seconds )
|
||||
{
|
||||
return millisToDateStr( seconds * 1000 );
|
||||
}
|
||||
|
||||
public static String millisToDateStr( long millis )
|
||||
{
|
||||
Time tim = new Time();
|
||||
tim.set( millis );
|
||||
return tim.format2445();
|
||||
}
|
||||
|
||||
// public static String toString( long[] longs )
|
||||
// {
|
||||
// String[] asStrs = new String[longs.length];
|
||||
|
|
Loading…
Reference in a new issue