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

Method transform

base/src/main/java/net/time4j/Moment.java:1060–1067  ·  view source on GitHub ↗
(TimeScale scale)

Source from the content-addressed store, hash-verified

1058 * @see #toString(TimeScale)
1059 */
1060 public BigDecimal transform(TimeScale scale) {
1061
1062 BigDecimal elapsedTime =
1063 new BigDecimal(this.getElapsedTime(scale)).setScale(9, RoundingMode.UNNECESSARY);
1064 BigDecimal nanosecond = new BigDecimal(this.getNanosecond(scale));
1065 return elapsedTime.add(nanosecond.movePointLeft(9));
1066
1067 }
1068
1069 @Override
1070 public boolean isAfter(UniversalTime temporal) {

Callers 7

transformUTCMethod · 0.95
transformGPSMethod · 0.95
transformTAIMethod · 0.95
transformPOSIXMethod · 0.95
transformTTMethod · 0.95
transformUTMethod · 0.95

Calls 3

getElapsedTimeMethod · 0.95
getNanosecondMethod · 0.95
addMethod · 0.45

Tested by 7

transformUTCMethod · 0.76
transformGPSMethod · 0.76
transformTAIMethod · 0.76
transformPOSIXMethod · 0.76
transformTTMethod · 0.76
transformUTMethod · 0.76