The Resource class has a getTimestamp() method that returns java.util.Date. This is an antiquated Java API, and has been superceded in Java 8 with the new date / time APIs. In this case, the timestamp might be better represented as a LocalDateTime or Instant, or one of the offset / timezone specific variants.
The Resource class has a getTimestamp() method that returns java.util.Date. This is an antiquated Java API, and has been superceded in Java 8 with the new date / time APIs. In this case, the timestamp might be better represented as a LocalDateTime or Instant, or one of the offset / timezone specific variants.
(We'll standardize on java.time.OffsetDateTime)