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

Method toString

base/src/main/java/net/time4j/PlainTime.java:1678–1702  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1676 * @return canonical ISO-8601-formatted string
1677 */
1678 @Override
1679 public String toString() {
1680
1681 StringBuilder sb = new StringBuilder(19);
1682
1683 sb.append('T');
1684 append2Digits(this.hour, sb);
1685
1686 if ((this.minute | this.second | this.nano) != 0) {
1687 sb.append(':');
1688 append2Digits(this.minute, sb);
1689
1690 if ((this.second | this.nano) != 0) {
1691 sb.append(':');
1692 append2Digits(this.second, sb);
1693
1694 if (this.nano != 0) {
1695 printNanos(sb, this.nano);
1696 }
1697 }
1698 }
1699
1700 return sb.toString();
1701
1702 }
1703
1704 @Override
1705 public LocalTime toTemporalAccessor() {

Callers 8

simpleSunriseMethod · 0.95
simpleSunsetMethod · 0.95
noaaSunriseMethod · 0.95
noaaSunsetMethod · 0.95
ccSunriseMethod · 0.95
ccSunsetMethod · 0.95
time4jSunriseMethod · 0.95
time4jSunsetMethod · 0.95

Calls 3

append2DigitsMethod · 0.95
printNanosMethod · 0.95
toStringMethod · 0.65

Tested by 8

simpleSunriseMethod · 0.76
simpleSunsetMethod · 0.76
noaaSunriseMethod · 0.76
noaaSunsetMethod · 0.76
ccSunriseMethod · 0.76
ccSunsetMethod · 0.76
time4jSunriseMethod · 0.76
time4jSunsetMethod · 0.76