add utility date formatting functions

This commit is contained in:
Eric House 2014-08-10 19:45:04 -07:00
parent bc33d0b81f
commit 1493895428

View file

@ -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];