How to understand strptime vs. strftime
问题 What's the difference between strptime and strftime ? I see that strptime is a method in the DateTime class, and strftime is a method in the Time class. What's the difference between Time and DateTime , other than that they have different core methods? The explanation for the Time class in the Ruby docs is helpful, but the one for DateTime just says "datetime". There's also the Date class, which says it provides Date and DateTime . Help me make sense of this. I see strptime and I want to