I'm trying to read a DWORD date from the Windows registry using Python's _winreg.QueryValueEx
and I can't get the correct format.
DWORD Value: 5116e300
Output using _winreg.QueryValueEx: 1360454400
Desired Output: 2/10/2013
Can I use datetime
somehow?
Thank you
Edit
kindall's solution worked below.
The final line used was the following:
import time
t = 1360454400
print time.strftime("%m/%d/%y", time.gmtime(t))
This will get you pretty close:
To get it without the leading zeroes: