class ActiveSupport::Duration::ISO8601Serializer

def format_seconds(seconds)

def format_seconds(seconds)
  if @precision
    sprintf("%0.0#{@precision}f", seconds)
  else
    seconds.to_s
  end
end