On Wed, 16 Feb 2005 11:34:55 +0100, Roel Schroeven <[EMAIL PROTECTED]> wrote: > Bill Mill wrote: > > However, where will it be pointing in 16 hours? Well, in 12 hours it > > will be at the one, then four more hours later it will be pointing at > > the five. This can be represented as: > > > > 1 + (16 % 12) = 1 + 4 = 5 > > Correcter is > > (1 + 16) % 12 = 17 % 12 = 5
d'oh! thanks for the correction. > > > In general, the hour at some point in the future will be: > > > > (start time) + (hours in the future % 12) > > (start time + hours in the future) % 12 > Peace Bill Mill bill.mill at gmail.com _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor