How do I pass a chrono::DateTime of one particular timezone to a function?

后端 未结 0 548
既然无缘
既然无缘 2021-01-12 18:07

I am trying to pass a date in a particular timezone to a function and try to print it:

use chrono::{DateTime, TimeZone, Utc};  
use chrono_tz::Asia::Kolkata;
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题