0

我正在尝试将日期时间转换为某种格式:

Timex.format!(my_date_time, "%a, %d %b %Y %H:%M:%S %z"))

引发异常

 got {:format, "Invalid format string, must contain at least one directive."} 
 while retrieving Exception.message/1 for %Timex.Format.FormatError{message: 
{:format, "Invalid format string, must contain at least one directive."}} (expected a string)
4

0 回答 0