The Elm DateTime functions are currently pretty meager, but justinmimbs. The Date.Extra library is my approach to solving this problem. Check here
You can import it as such,
import Date.Extra exposing (offsetFromUtc)
And then, when you toString <| datechanged your pipeline to
date
|> offsetFromUtc
|> toString
, float, int 60. :
divBy60 : Int -> Float
divBy60 t =
toFloat t / 60.0
date
|> offsetFromUtc
|> divBy60
|> toString