Query system date

ScherBi at BAM.com ScherBi at BAM.com
Thu Sep 9 10:41:14 EDT 1999


>>>import time
>>>time.strftime("%m-%d-%Y", time.localtime(time.time()))
'09-09-1999'

See the docs on the time module for more info.

-Bill

-----Original Message-----
From: mdperry_26 at my-deja.com [mailto:mdperry_26 at my-deja.com]
Sent: Thursday, September 09, 1999 10:19 AM
To: python-list at python.org
Subject: Query system date


I am new to python and I am trying to figure out how to return the
computers system date and time and then format it as MM-DD-YYYY.  I have
searched the documentation up and down and have not found anything about
how to accomplish this.  Any help would be greatly appeciated.

Thanks,

Mark.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

-- 
http://www.python.org/mailman/listinfo/python-list




More information about the Python-list mailing list