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

Method format1

base/src/test/java/net/time4j/MachineTimeTest.java:507–515  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

505 }
506
507 @Test
508 public void format1() {
509 MachineTime.Formatter f =
510 MachineTime.Formatter.ofPattern("+hh:mm:ss");
511 String s1 = f.format(MachineTime.of(99005, TimeUnit.SECONDS));
512 assertThat(s1, is("+27:30:05"));
513 String s2 = f.format(MachineTime.of(-99005, TimeUnit.SECONDS));
514 assertThat(s2, is("-27:30:05"));
515 }
516
517 @Test
518 public void format2() {

Callers

nothing calls this directly

Calls 3

ofMethod · 0.95
formatMethod · 0.65
ofPatternMethod · 0.45

Tested by

no test coverage detected