MCPcopy Create free account
hub / github.com/MenoData/Time4J / toString

Method toString

base/src/main/java/net/time4j/MachineTime.java:1119–1129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1117 * @return String like "-5s [POSIX]" or "4.123456789s [UTC]"
1118 */
1119 @Override
1120 public String toString() {
1121
1122 StringBuilder sb = new StringBuilder();
1123 this.createNumber(sb);
1124 sb.append("s [");
1125 sb.append(this.scale.name());
1126 sb.append(']');
1127 return sb.toString();
1128
1129 }
1130
1131 /**
1132 * <p>Converts this machine time duration into a decimal number of seconds. </p>

Callers

nothing calls this directly

Calls 3

createNumberMethod · 0.95
nameMethod · 0.65
toStringMethod · 0.65

Tested by

no test coverage detected