View Full Version : get current date with python


ruff_hi
Nov 27, 2006, 10:01 PM
Hi Ya - I know that I can get the current time with 'getClockText' but what about getting the current date? Is that possible?

Sto
Nov 28, 2006, 03:27 AM
you should look at the module time in the python doc . there is all to get the current date (but not tested)

Tcho !

Denniz
Nov 28, 2006, 05:15 AM
I used the time module for the generated file names in the HOF Mod.

time.strftime("%b-%d-%Y_%H-%M-%S") yields this: "Nov-28-2006_05-13-37". Lots of nice formating options there. :)