[Schmitzm-commits] r1777 - trunk/schmitzm-core/src/main/java/de/schmitzm/lang
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Sat Nov 12 02:13:44 CET 2011
Author: alfonx
Date: 2011-11-12 02:13:40 +0100 (Sat, 12 Nov 2011)
New Revision: 1777
Modified:
trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
Log:
Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java 2011-11-11 15:55:38 UTC (rev 1776)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/lang/LangUtil.java 2011-11-12 01:13:40 UTC (rev 1777)
@@ -2084,12 +2084,16 @@
final long min = TimeUnit.MILLISECONDS.toMinutes(l - TimeUnit.HOURS.toMillis(hr));
final long sec = TimeUnit.MILLISECONDS.toSeconds(l - TimeUnit.HOURS.toMillis(hr)
- TimeUnit.MINUTES.toMillis(min));
- final long ms = TimeUnit.MILLISECONDS.toMillis(l - TimeUnit.HOURS.toMillis(hr) - TimeUnit.MINUTES.toMillis(min)
- - TimeUnit.SECONDS.toMillis(sec));
+// final long ms = TimeUnit.MILLISECONDS.toMillis(l - TimeUnit.HOURS.toMillis(hr) - TimeUnit.MINUTES.toMillis(min)
+// - TimeUnit.SECONDS.toMillis(sec));
if (days > 0)
- return String.format("%ddays %02d:%02d:%02d.%03d", days, hr, min, sec, ms);
+ return String.format("%ddays %02d:%02d:%02d", days, hr, min, sec);
else
- return String.format("%02d:%02d:%02d.%03d", days, hr, min, sec, ms);
+ return String.format("%02d:%02d:%02d", hr, min, sec);
+// if (days > 0)
+// return String.format("%ddays %02d:%02d:%02d.%03d", days, hr, min, sec, ms);
+// else
+// return String.format("%02d:%02d:%02d.%03d", days, hr, min, sec, ms);
}
}
More information about the Schmitzm-commits
mailing list