You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, some formats could be defined at compile time. Date "only" would be (would be initialized at midnight):
let date_only = EpochFormat{items:[EpochItem{token:Token::Year,sep_char:Some('-'),sep_char_alt:None},EpochItem{token:Token::Month,sep_char:Some('-'),sep_char_alt:None},EpochItem{token:Token::Day,sep_char:Some('-'),sep_char_alt:None}],num_items:3}
This would allow formatting date times with the typical tokens like
%Y-%m-%d
. Chrono supports this, and its support should be used as a template for the Hifitime implementation: https://docs.rs/chrono/latest/chrono/format/index.html , https://docs.rs/chrono/latest/chrono/format/strftime/index.html .Time-rs also has extensive support for formatting: https://time-rs.github.io/book/api/well-known-format-descriptions.html .
The text was updated successfully, but these errors were encountered: