     {h, _} = Integer.parse(hours)
     {m, _} = Integer.parse(minutes)
     erl_date_time = {{year, month, day}, {h, m, 0}}
+    IO.puts inspect erl_date_time
     Calendar.DateTime.from_erl!(erl_date_time, timezone)
     |> Calendar.DateTime.Format.unix
   end

  end

  def scheduled?(schedule, check_time, timezone \\ nil) do
    check_date_schedule = check_time |> Calendar.Date.day_of_week_name
    iterate(schedule, check_time, timezone)
  end

  defp iterate([head|tail], check_time, timezone) do


  end

  defp iterate(nil, check_time, timezone) do
    {:ok, false}
  end

