defmodule PodcastFeedWeb.FeedView do use PodcastFeedWeb, :view def format_length(length) do min = length / 60 |> trunc() sec = length - (min * 60) "#{min}:#{sec}" end end