Path: csiph.com!news.mixmin.net!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.programming Subject: Re: A little puzzle. Date: Thu, 24 Nov 2022 20:36:19 +0000 Organization: A noiseless patient Spider Lines: 23 Message-ID: <87bkowgke4.fsf@bsb.me.uk> References: <875yf8nijb.fsf@bsb.me.uk> <865yf79l66.fsf@linuxsc.com> <87wn7nj9mb.fsf@bsb.me.uk> <86sfi98xnx.fsf@linuxsc.com> <87leo1i5bo.fsf@bsb.me.uk> <87edtsijfq.fsf@bsb.me.uk> <87v8n4h003.fsf@bsb.me.uk> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: reader01.eternal-september.org; posting-host="66cc716c1d8e20186aec3fe895a20c78"; logging-data="775575"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fZxjxg5k/beWrwsgMcaXKQBub4Zqchjg=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:QFsXjMzoiiFDP4RBq/4QvnESBnU= sha1:8VlCW9eE/4vnIyIuqvD4wHt+ndQ= X-BSB-Auth: 1.cd5a73a91cecd9b254d1.20221124203619GMT.87bkowgke4.fsf@bsb.me.uk Xref: csiph.com comp.programming:15963 Richard Harnden writes: > On 24/11/2022 14:59, Ben Bacarisse wrote: > >> I'd like to find a way to pin it down in case I ever want to express the >> problem to someone else. The case in point related to timed events >> where I only know the start and end minutes. I needed to test if the >> current time's minutes was in any of the events. So if there were three >> events running from >> 10 to 25, 30 to 50 and 55 to 05 >> minutes past the hour then at 15 past we are in event 1. At 35 past we >> are not in any event, and at 03 we are in event 3. > > Isn't 35 within event 2? Or am I missing something? Yes! I stupidly went and edited the times because I'd chosen very odd ones and then didn't check. You clearly see the question now, so do you have advice on how I could word it so as to avid your initial view of what was asking? -- Ben.