how to store a date in a file with mxDateTime

Scott Hathaway slhath at home.com
Mon May 14 15:59:30 EDT 2001


Here is what I am trying to do:

1.  store a date in a file.
2.  compare the dates to see if today + 15 days is greater than the date
from the file.

(I am implementing a timeout in a program if not registered).

I am using the mx.DateTime library, but I cannot seem to get the following
comparision to work because the dateFromFile is a string.

todayPlus15Days = DateTime.today() + 15
if (todayPlus15Days > fileFromDate):

I have tried the RelativeDateFrom(fileFromDate) method and
DateTimeFrom(fileFromDate) method without success.

Can anyone help?

TIA,
Scott





More information about the Python-list mailing list