Skip to main content

format_rss_time

Function format_rss_time 

Source
pub fn format_rss_time(time: Option<DateTime<Utc>>) -> String
Expand description

UTC 时间 → 中文格式字符串

转为上海时区后格式化为“X年X月X日X点X分“。 对应 Java GeneralUtils.formatTime

§参数

  • time: UTC 时间,None 时返回空字符串