Has anyone out there ever been able to work with Julian dates with ZOPE? If you are unfamiliar with a Julian date it is the year followed by the number of day. example: today is 01134 day. 01 is the year, today is the 134th day of the year. Thanks.
matt standish wrote:
Has anyone out there ever been able to work with Julian dates with ZOPE? If you are unfamiliar with a Julian date it is the year followed by the number of day. example: today is 01134 day. 01 is the year, today is the 134th day of the year. Thanks.
In DTML: <dtml-var expr="_.DateTime().yy()[1]"><dtml-var expr="_.DateTime().dayOfYear()"> It would be cleaner in a Python Script though. -- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM
Tim Cook wrote:
In DTML: <dtml-var expr="_.DateTime().yy()[1]"><dtml-var expr="_.DateTime().dayOfYear()">
It would be cleaner in a Python Script though.
OOPS! I just noticed you wanted 5 digits instead of the four that I am familiar with using: <dtml-var expr="_.DateTime().yy()"><dtml-var expr="_.DateTime().dayOfYear()"> -- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM
thanks for you help! ----- Original Message ----- From: "Tim Cook" <twcook@iswt.com> To: "matt standish" <mps_@hotmail.com> Cc: <zope@zope.org> Sent: Monday, May 14, 2001 14:04 Subject: Re: [Zope] Julian Date
matt standish wrote:
Has anyone out there ever been able to work with Julian dates with ZOPE?
If
you are unfamiliar with a Julian date it is the year followed by the number of day. example: today is 01134 day. 01 is the year, today is the 134th day of the year. Thanks.
In DTML: <dtml-var expr="_.DateTime().yy()[1]"><dtml-var expr="_.DateTime().dayOfYear()">
It would be cleaner in a Python Script though.
-- Tim Cook, President - FreePM,Inc. http://www.FreePM.com Office: (731) 884-4126 ONLINE DEMO: http://www.freepm.org:8080/FreePM
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
matt standish -
Tim Cook