[Zope] PythonScript DateTime() comparison.
Ausum Studio
ausum_studio at hotmail.com
Fri Apr 23 02:15:12 EDT 2004
You use DateTime() to create a date object:
onedate =DateTime('09/21/2003 10:32:28 PM')
rightnow = DateTime() # or context.ZopeTime()
Now you have two objects to compare with Zope's DateTime methods.
Ausum
----- Original Message -----
From: "Jason C. Leach" <jleach at ocis.net>
To: <zope at zope.org>
Sent: Thursday, April 22, 2004 6:39 PM
Subject: [Zope] PythonScript DateTime() comparison.
> 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?
>
> Thanks,
> Jason.
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
More information about the Zope
mailing list