Joss Whedon said this quote

I always was an early-morning or late-night writer. Early morning was my favorite; late night was because you had a deadline. And at four in the morning, you make up some of your most absurd jokes.