Trying to express time in all its forms listed in Appendix A, Date-time data, of the DTML User�s Guide. For example, the Guide indicates that �pCommon� should return a string like �Mar. 1, 1997 1:45 pm�. But what�s the rest of the expression? <!--#var pCommon--> <!--#var time=�pCommon�--> <!--#var ZopeTime=�pCommon�--> Don�t work. I�m reading all the docs I can find...being successful when I find explicit examples, un when not. Am I missing the mother lode of detailed examples? Dave === David Robson robson555@yahoo.com Computer Support Towson High School, MD, USA __________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com
David Robson wrote:
Trying to express time in all its forms listed in Appendix A, Date-time data, of the DTML User?s Guide. For example, the Guide indicates that ?pCommon? should return a string like ?Mar. 1, 1997 1:45 pm?. But what?s the rest of the expression?
<!--#var pCommon--> <!--#var time=?pCommon?--> <!--#var ZopeTime=?pCommon?-->
Don?t work.
I?m reading all the docs I can find...being successful when I find explicit examples, un when not. Am I missing the mother lode of detailed examples?
<dtml-var "ZopeTime().pCommon()"> -Michel
Try this: <dtml-var your_date fmt=pCommon> where your_date may be the name of a property of type date of your containing folder (if you are writing a DTML Method) or any variable whose name is accessible. At 20:48 99-09-16 -0700, David Robson wrote:
Trying to express time in all its forms listed in Appendix A, Date-time data, of the DTML User�s Guide. For example, the Guide indicates that �pCommon� should return a string like �Mar. 1, 1997 1:45 pm�.
*************************** Oscar Picasso picasso@videotron.ca ***************************
participants (3)
-
David Robson -
Michel Pelletier -
picasso@videotron.ca