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

Method from

base/src/main/java/net/time4j/MachineTime.java:1192–1196  ·  view source on GitHub ↗
(java.time.Duration threeten)

Source from the content-addressed store, hash-verified

1190 * @since 4.28
1191 */
1192 public static MachineTime<TimeUnit> from(java.time.Duration threeten) {
1193
1194 return MachineTime.ofPosixUnits(threeten.getSeconds(), threeten.getNano());
1195
1196 }
1197
1198 private void createNumber(StringBuilder sb) {
1199

Callers 3

threetenConversionMethod · 0.95
surroundingMethod · 0.95

Calls 2

ofPosixUnitsMethod · 0.95
getSecondsMethod · 0.45

Tested by 2

threetenConversionMethod · 0.76