Re: [Zope] Subtracting DateTimes?????
On Fri, 06 Oct 2000, Daniel Rusch wrote: > We backup our database every night at 3:00 AM CT. 15 minutes prior to > this (i.e. 2:45 AM) I would like to display a warning. > How do I compare the current time "(ZopeTime()).toZone('US/Central')"> to 3:00 AM Central Time ? > > doesn't work. > > Any thoughts??? > Either convert to Unix time (seconds since the epoch) by coercing the date to an integer, or try something like: _.DateTime('%s 3:00 US/Central' % (_.DateTime().toZone('US/Central'))) works for me to create '3am today' US/Central time... > > Dan > Curtis ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] Subtracting DateTimes?????
Try... = 45"> Time to show backup warning! Daniel Rusch wrote: > We backup our database every night at 3:00 AM CT. 15 minutes prior to > this (i.e. 2:45 AM) I would like to display a warning. > How do I compare the current time "(ZopeTime()).toZone('US/Central')"> to 3:00 AM Central Time ? > > doesn't work. > > Any thoughts??? > > Dan > > ___ > Zope maillist - [EMAIL PROTECTED] > 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 ) ___ Zope maillist - [EMAIL PROTECTED] 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 )
[Zope] Subtracting DateTimes?????
We backup our database every night at 3:00 AM CT. 15 minutes prior to this (i.e. 2:45 AM) I would like to display a warning. How do I compare the current time to 3:00 AM Central Time ? doesn't work. Any thoughts??? Dan ___ Zope maillist - [EMAIL PROTECTED] 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 )