[Zope] time conversion /kv
Andreas Jung
lists at andreas-jung.com
Fri Nov 7 11:55:57 EST 2003
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