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

Method format4

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

Source from the content-addressed store, hash-verified

535 }
536
537 @Test
538 public void format4() {
539 MachineTime.Formatter f =
540 MachineTime.Formatter.ofPattern("+mm:ss.ffff");
541 String s1 = f.format(MachineTime.ofPosixUnits(65, 123456789));
542 assertThat(s1, is("+01:05.1234"));
543 String s2 = f.format(MachineTime.ofPosixUnits(-65, -123456789));
544 assertThat(s2, is("-01:05.1234"));
545 }
546
547 @Test
548 public void format5() {

Callers

nothing calls this directly

Calls 3

ofPosixUnitsMethod · 0.95
formatMethod · 0.65
ofPatternMethod · 0.45

Tested by

no test coverage detected