[Zope] DateTime DST query
Chris Withers
chrisw@nipltd.com
Wed, 09 Oct 2002 23:53:17 +0100
Matthew Anderson wrote:
>>Why not just round the result?
>
> That would be a nice option however I occasionally deal in fractions of a day so 31.5416666667 would round up to 32 days and not 31.5 days as I would require.
So make your rounding algorithm better ;-)
>>From what I can gather the Zope DateTime object is derived from the python mxDateTime module. mxDatetime instances appear to have a 'dst' variable which tells you whether DST is active or not. However, this variable does not seem to be present (or available) in a Zope DateTime instance :(
Nah, they don't have much to do with one another...
cheers,
Chris