[Tutor] date problems

Eric Meigs thepond at hughes.net
Wed Apr 28 21:22:56 CEST 2010


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 get it into a format for comparison.

I can do all of the other code.

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100428/afc99942/attachment.html>


More information about the Tutor mailing list