|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
date zobject
I need to get a date object in zope in the format 2003/01/26
This below will work in IDLE but strftime won't go in zope from time import strftime strftime("%Y/%m/%d") I'd like for this in zpt but I don't know enough of python:modules to figure it. also a script(python) would do. I need to compare zope time formatted 2003/01/26 using zpt against a sql table with preinserted data '2003/01/26' for a schedule type thing where zope date changes the appropriate stuff is displayed. Thanks; ![]() |
|
#2
|
|||
|
|||
|
this zpt works
<span tal:replace="python:here.ZopeTime().strftime('%m/%d/%Y')" /> though I think maybe I want a script(python, perl) too cmp zopetime == sql date table, display data from zpt calling this object and also have the script do some batching so the display can have an <<previous link. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > date zobject |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|