SunQuest
           Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old January 26th, 2003, 12:04 PM
!zeBlSuDr !zeBlSuDr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 8 !zeBlSuDr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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;

Reply With Quote
  #2  
Old January 27th, 2003, 01:04 AM
!zeBlSuDr !zeBlSuDr is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 8 !zeBlSuDr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > date zobject


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway