formated local time

Nikola Skoric nick-news at net4u.hr
Thu Nov 15 10:19:30 EST 2007


I have been trying to find appropriate way to do get local time in
"yyyy-mm-dd hh:mm:ss" format, but the best I got is this:
datetime.datetime.fromtimestamp(time.mktime(time.localtime()))
It seems to me I'm missing a much simpler method, am I?

-- 
"Now the storm has passed over me
I'm left to drift on a dead calm sea
And watch her forever through the cracks in the beams
Nailed across the doorways of the bedrooms of my dreams"



More information about the Python-list mailing list