MCPcopy Create free account
hub / github.com/amazon-ion/ion-java / clone

Method clone

src/main/java/com/amazon/ion/Timestamp.java:1210–1227  ·  view source on GitHub ↗

Creates a copy of this Timestamp. The resulting Timestamp will represent the same point in time and has the same precision and local offset. {@inheritDoc}

()

Source from the content-addressed store, hash-verified

1208 * {@inheritDoc}
1209 */
1210 @Override
1211 public Timestamp clone()
1212 {
1213 // The Copy-Constructor we're using here already expects the time field
1214 // values to be in UTC, and that is already what we have for this
1215 // Timestamp -- no adjustment necessary to make it local time.
1216 return new Timestamp(_precision,
1217 _year,
1218 _month,
1219 _day,
1220 _hour,
1221 _minute,
1222 _second,
1223 _fraction,
1224 _offset,
1225 APPLY_OFFSET_NO,
1226 CHECK_FRACTION_NO);
1227 }
1228
1229 /**
1230 * Applies the local offset from UTC to each of the applicable time field

Callers 2

printZMethod · 0.95

Calls

no outgoing calls

Tested by 1