Well, maybe. Here's the file the change and results:# Using datetime to do date-time math on a file date-time stamp andResults: Traceback (most recent call last):>From a PLEAC web: # The easiest way to convert this to a datetime seems to be; now = datetime.datetime(*time.strptime("16/6/1981", "%d/%m/%Y")[0:5]) # the '*' operator unpacks the tuple, producing the argument list.I tried the [0:6] and it got the same results. John Fouhy wrote: 2008/9/8 Wayne Watson <[EMAIL PROTECTED]>: --
Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet
"If voting made any difference they wouldn't let us do it."
-- Mark Twain
Web Page: <www.speckledwithstars.net/>
|
_______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
