特征:
timezone_converter 有两个参数:转换时间和目标时区。
tzt --help
Converts time between time zones
Usage: tzt --time <TIME> --from <FROM_TIMEZONE> --to <TO_TIMEZONE>
Options:
-T, --time <TIME> Time in the format YYYY-MM-DD HH:MM:SS (you can omit HH:MM:SS) or YYYY-MM-DDTHH:MM:SS
-f, --from <FROM_TIMEZONE> The original timezone (e.g. America/New_York) @see https://docs.rs/chrono-tz/latest/chrono_tz/enum.Tz.html
-t, --to <TO_TIMEZONE> The target timezone (e.g. Asia/Tokyo) @see https://docs.rs/chrono-tz/latest/chrono_tz/enum.Tz.html#
-h, --help Print help
-V, --version Print version
更多信息查看 GitHub, https://github.com/shunsock/timezone_translator
广义的概念包括以下三个要素。
更多信息查看 GitHub, https://github.com/ricosjp/truck
通过从头开始实现 JSON 解析来了解解析的基础知识
具体教程见:https://blog.davimiku.com/tutorials/json-parsing-rust-1