Skip to content

Commit 06ccad7

Browse files
committed
Minor
1 parent 6cc3ff1 commit 06ccad7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/iceberg/src/spec/timestamp.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ impl Timestamp {
4444
Ok(Timestamp(naive_date_time.and_utc()))
4545
}
4646

47+
/// Returns the DateTime represented by this Timestamp
48+
pub fn to_date_time(self) -> DateTime<Utc> {
49+
self.0
50+
}
51+
4752
/// Returns the milliseconds since epoch represented by this Timestamp
4853
pub fn to_milliseconds_since_epoch(self) -> i64 {
4954
self.0.timestamp_millis()

0 commit comments

Comments
 (0)