D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Fiddly text processing: adjusting extracted text for seasonally altered time difference

 

Adrian Midgley wrote:

> > I take it that 23rd 10-8am is 23rd 22:00 to 24th 08:00 and should be
> > turned in, to 24th 09:00 19:00 and hence 24th 9-7

Actually, is that th wrong way round?

> > "6th off" or "27th - 31st off" becomes what?
> >
> >   
> Unchanged I guess, or as a council of excessive perfection would mutate
> into 27th off 28th off 29th off etc. 

Well, with an 12 hour difference, the 6th becomes midday the 6th to
midday the 7th.

> I had been contemplating presenting it as a table rather than a string.

> It is pulling the rota information the kids put up on their myspace page
> so that we know when a good time to try to talk to them is.

If that's the case, I'd be inclined to present only the good times,
rather than the off ones.

Given the huge difference, I would also present our date and the time
or times that are applicable, even if it's a split shift.

1st -04 20-22
2nd 08-16

It seems more sensible that spanning days.

Let me know what output you want and I'll knock it up in the morning.

Steve

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html