[Zope] PythonScript DateTime() comparison.
Alec Mitchell
apm13 at columbia.edu
Thu Apr 22 21:58:27 EDT 2004
On Thursday 22 April 2004 04:39 pm, Jason C. Leach wrote:
> Zope:
>
> I get a date from a MySQL DB in the format M/DD/YYYY HH:MM:SS AM (or
> PM). I need to check this date agains the current date. Can I request
> the Date in this specific format from Zope PythonScript?
Yes, just call DateTime(date) or context.ZopeTime(date) where date is the
string containing the date in the MySQL format. That will give you a Zope
DateTime object for comparison.
Alec Mitchell
More information about the Zope
mailing list