You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/10/26 08:59:24 UTC

[GitHub] [arrow-rs] waitingkuo commented on issue #2934: Cast Timestamps to RFC3339 strings

waitingkuo commented on issue #2934:
URL: https://github.com/apache/arrow-rs/issues/2934#issuecomment-1291720548

   https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=42768115ab784d65df24ca371c09f985
   
   the debug version follows RFC3339
   
   ```rust
   use chrono; // 0.4.22
   use chrono::{TimeZone, FixedOffset};
   
   fn main() {
       let dt = FixedOffset::east(8 * 60 * 60).ymd(2018, 1, 26).and_hms_micro(18, 30, 9, 453_829);
       println!("{}", dt);
       println!("{:?}", dt);
   }
   ```
   
   ```
   2018-01-26 18:30:09.453829 +08:00
   2018-01-26T18:30:09.453829+08:00
   ```


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org