[Zope] time conversion /kv

Kai Vermehr k at eboy.com
Fri Nov 7 12:05:23 EST 2003


thanks! Is there a good tutorial you would recommend?
Will start with "How to think like a Computer Scientist" this weekend 
...

'K:?

On 07.11.2003, at 17:55, Andreas Jung wrote:
>
> mytime = DateTime('2003/11/01').pCommon()
>
> -aj
>
> p.s. i suggest to learn the basic of object orientprogramming by 
> stepping
> through Python tutorial first.
>
> --On Freitag, 7. November 2003 17:39 Uhr +0100 Kai Vermehr 
> <k at eboy.com> wrote:
>
>> I'm sorry, but I'm fairly new to programming and Zope ...
>>
>> why does a method of the DateTime API not work with Python Scripts? 
>> What
>> is a constructor? And how call the pCommon() on the instance? What is 
>> the
>> instance in this case?
>>
>> And is it possible to make a date conversion with a Python script or 
>> even
>> recommendable?
>>
>> Maybe an example would help ...
>>
>> thanks!
>>
>>
>>
>> On 07.11.2003, at 17:28, Andreas Jung wrote:
>>
>>>
>>>
>>> --On Freitag, 7. November 2003 17:22 Uhr +0100 Kai Vermehr
>>> <k at eboy.com> wrote:
>>>
>>>> I have this little script:
>>>>
>>>> 	mytime = pCommon(2003/11/01)
>>>> 	return mytime
>>>>
>>>
>>> Why should this work? pCommon() seems to be a method of the DateTime
>>> API. Means you must pass the the date as string to the constructor
>>> of DateTime and then call the pCommon() on the instance.
>>>
>>> -aj
>>>
>>
>>
>> _______________________________________________
>> 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