IGNITE-5750 Change HMSM format to hh:mm:ss.mmm Closes #2298
Signed-off-by: Konstantin Boudnik <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/726481c6 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/726481c6 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/726481c6 Branch: refs/heads/ignite-5896 Commit: 726481c637b06e7801bfec05535adcef8d3f614b Parents: db5880a Author: Evgeniy Ignatiev <[email protected]> Authored: Thu Aug 24 10:25:08 2017 +0400 Committer: Konstantin Boudnik <[email protected]> Committed: Fri Sep 1 10:38:06 2017 -0700 ---------------------------------------------------------------------- .../src/main/java/org/apache/ignite/internal/util/typedef/X.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/726481c6/modules/core/src/main/java/org/apache/ignite/internal/util/typedef/X.java ---------------------------------------------------------------------- diff --git a/modules/core/src/main/java/org/apache/ignite/internal/util/typedef/X.java b/modules/core/src/main/java/org/apache/ignite/internal/util/typedef/X.java index 174ab86..395de23 100644 --- a/modules/core/src/main/java/org/apache/ignite/internal/util/typedef/X.java +++ b/modules/core/src/main/java/org/apache/ignite/internal/util/typedef/X.java @@ -197,7 +197,7 @@ public final class X { } /** - * Creates string presentation of given time {@code span} in hh:mm:ss:msec {@code HMSM} format. + * Creates string presentation of given time {@code span} in hh:mm:ss.msec {@code HMSM} format. * * @param span Time span. * @return String presentation. @@ -212,7 +212,7 @@ public final class X { return (t[3] < 10 ? "0" + t[3] : Long.toString(t[3])) + ':' + (t[2] < 10 ? "0" + t[2] : Long.toString(t[2])) + ':' + - (t[1] < 10 ? "0" + t[1] : Long.toString(t[1])) + ':' + + (t[1] < 10 ? "0" + t[1] : Long.toString(t[1])) + '.' + (t[0] < 10 ? "00" + t[0] : ( t[0] < 100 ? "0" + t[0] : Long.toString(t[0]))); }
