Re: [Tutor] date problems

2010-04-28 Thread Alex Clark
On 2010-04-28, Eric Meigs wrote: > This is a multi-part message in MIME format. > --===0277013919== > Content-Type: multipart/alternative; > boundary="060806000801070600050409" > > This is a multi-part message in MIME format. > --060806000801070600050409 >

Re: [Tutor] date problems

2010-04-28 Thread Alan Gauld
"Eric Meigs" wrote I don't see how to read in a string and get it into a format for comparison. Have you loked at the time and datetime modules? They should do all you need. -- Alan Gauld Author of the Learn to Program web site http://www.alan-g.me.uk/ ___

[Tutor] date problems

2010-04-28 Thread Eric Meigs
I want to create a program to tell me when I am supposed to do things. I have a text file with dates like 4-4-2010' as well as other data. I want to read in this date into my code and then compare it with 'date.today()' example 'if /variable/ >= today:' I don't see how to read in a string and