Anyone have any ideas on how i can create a variable using the REQUEST.set object and insert the ZopeTime into it formatted with just the time? and not the date and GMT on the end??
Probably an impossible suggestion but, hey....
Nothing's impossible :^) try: <!--#call "REQUEST.set('time_now', ZopeTime().Time())"--> Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
how bout putting that next to the date index in DTML doc? I'm a newbie to zope and have been rooting around for awhile for the below code, I was way off track what I doing to manipulate dates. for the newbie - we need more explicit code to work off. but Zope definetly whips the donkeys ass. thanks, runyaga
Nothing's impossible :^)
try:
<!--#call "REQUEST.set('time_now', ZopeTime().Time())"-->
Brian Lloyd brian@digicool.com Software Engineer 540.371.6909 Digital Creations http://www.digicool.com
Note that you can convert standard epoch time values (such as Confera "created" and "modified") or well-formatted date/time strings into DateTime objects by passing them to "_.DateTime()". Then you can apply any of the zillions of formatting and datetime arithmetic operations to it easily. For example: <dtml-var "_.DateTime(adatestring) + 5" fmt="%m/%d/%y">
On Mon, 6 Sep 1999, Evan Simpson wrote:
Note that you can convert standard epoch time values (such as Confera "created" and "modified") or well-formatted date/time strings into DateTime objects by passing them to "_.DateTime()". Then you can apply any of the zillions of formatting and datetime arithmetic operations to it easily. For example:
<dtml-var "_.DateTime(adatestring) + 5" fmt="%m/%d/%y">
what is this ? <dtml-var "_.DateTime('1999-09-11') + 5" fmt="%m/%d/%y"> gives me: 09/10/99 ^^ the day is one less ?? timezone problem ? Gruß Joachim Schmitz WWW-Consultant email: js@ac-copy.net tel: +49-241-89491-0 fax: +49-241-89491-29
participants (4)
-
Brian Lloyd -
Evan Simpson -
Joachim Schmitz -
runyaga@thisbox.com