@@ -0,0 +1,703 @@
+package com.haxademic.core.text;%0A%0Apublic class StringFormatter %7B%0A%0A%09public static String timeFromSeconds( int seconds, boolean showHours ) %7B%0A%09%09int h = (int) Math.floor(seconds / 3600f);%0A%09%09int m = (int) Math.floor(seconds %25 3600f / 60f);%0A%09%09int s = (int) Math.floor(seconds %25 3600f %25 60);%0A%09%09String hStr = (h %3C 10 ? %220%22 : %22%22) + h;%0A%09%09String mStr = (m %3C 10 ? %220%22 : %22%22) + m;%0A%09%09String sStr = (s %3C 10 ? %220%22 : %22%22) + s;%0A%09%09if( showHours == true ) %7B%0A%09%09%09return hStr + ':' + mStr + ':' +sStr;%0A%09%09%7D else %7B%0A%09%09%09return mStr + ':' +sStr;%0A%09%09%7D%0A%09%7D;%0A%0A%09public static String timeFromMilliseconds( int millies, boolean showHours ) %7B%0A%09%09return StringFormatter.timeFromSeconds( (int) Math.round( millies * 0.001f ), showHours );%0A%09%7D%0A%7D%0A

Add StringFormatter - more static methods to comd