codephage2020 commented on issue #9337:
URL: https://github.com/apache/arrow-rs/issues/9337#issuecomment-3838560954

   I will give it a try. The initial idea is to add the following two methods 
to the 4 timestamp types.
   ```rust
   // For timezone-aware DateTime (handles offset automatically)
   pub fn from_datetime<Tz: TimeZone>(datetime: DateTime<Tz>) -> i64;
   
   // For timezone-naive NaiveDateTime (treated as UTC)
   pub fn from_naive_datetime(naive: NaiveDateTime) -> i64;
   ```


-- 
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]

Reply via email to