We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cc3ff1 commit 06ccad7Copy full SHA for 06ccad7
crates/iceberg/src/spec/timestamp.rs
@@ -44,6 +44,11 @@ impl Timestamp {
44
Ok(Timestamp(naive_date_time.and_utc()))
45
}
46
47
+ /// Returns the DateTime represented by this Timestamp
48
+ pub fn to_date_time(self) -> DateTime<Utc> {
49
+ self.0
50
+ }
51
+
52
/// Returns the milliseconds since epoch represented by this Timestamp
53
pub fn to_milliseconds_since_epoch(self) -> i64 {
54
self.0.timestamp_millis()
0 commit comments