tsreaper commented on code in PR #1735:
URL: https://github.com/apache/incubator-paimon/pull/1735#discussion_r1289843462
##########
paimon-core/src/main/java/org/apache/paimon/io/DataFileMeta.java:
##########
@@ -213,6 +214,14 @@ public Timestamp creationTime() {
return creationTime;
}
+ public static long convertCreationTimeToEpoch(Timestamp creationTime) {
+ return creationTime
+ .toLocalDateTime()
+ .atZone(ZoneId.systemDefault())
+ .toInstant()
+ .toEpochMilli();
+ }
Review Comment:
```suggestion
public long creationTimeEpochMillis() {
return creationTime
.toLocalDateTime()
.atZone(ZoneId.systemDefault())
.toInstant()
.toEpochMilli();
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]