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

Method format5

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

Source from the content-addressed store, hash-verified

545 }
546
547 @Test
548 public void format5() {
549 MachineTime.Formatter f =
550 MachineTime.Formatter.ofPattern("+##s,ffffff");
551 String s1 = f.format(MachineTime.ofPosixUnits(0, 123456789));
552 assertThat(s1, is("+0,123456"));
553 String s2 = f.format(MachineTime.ofPosixUnits(0, -123456789));
554 assertThat(s2, is("-0,123456"));
555 }
556
557 @Test
558 public void parse() throws ParseException {

Callers

nothing calls this directly

Calls 3

ofPosixUnitsMethod · 0.95
formatMethod · 0.65
ofPatternMethod · 0.45

Tested by

no test coverage detected