in reply to •Re: localtime()
in thread localtime()

I personally use the strftime approach that blokhead shows, but I'm curious. Why do you dislike this idiom? Is it due to the length checking? The use of a two digit day? The fact that this can be done easily with sprintf? Or just the fact that the entire date format can be done more easily through strftime?