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

Method dateValue

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

Converts the value of this Timestamp into a Date, representing the time in UTC. This method will return the same result for all Timestamps representing the same point in time, regardless of the local offset. Because Date instances are mutable, this method returns a new instan

()

Source from the content-addressed store, hash-verified

1569 * @return a new {@code Date} instance, in UTC
1570 */
1571 public Date dateValue()
1572 {
1573 long millis = getMillis();
1574 return new Date(millis);
1575 }
1576
1577
1578 /**

Callers 3

checkEquivalenceMethod · 0.95
readAndTestValueMethod · 0.95
dateValueMethod · 0.95

Calls 1

getMillisMethod · 0.95

Tested by 2

checkEquivalenceMethod · 0.76
readAndTestValueMethod · 0.76