[EMAIL PROTECTED] wrote: > Dows anybody know how to work out what week of the year you are in?
Search the list archives - it's been discussed before. But if you need to know how, I'll give you a few tips. There's an oconv option which returns the "day of year" value, divide this by 7 to work out how many weeks have passed. And the ISO standard says (a) the week is Monday to Sunday, and (b) a week belongs to whichever year its Thursday falls into. So the algorithm is something like "what is the 'day of year' for this week's Thursday? Now divide that by 7". I've got a feeling this simple algorithm has got an "off by one" error in it, so you'll need to check for that, but that's about it. Cheers, Wol ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
