HP3000-L Archives

October 1996, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Pickering, John (NORBORD)" <[log in to unmask]>
Reply To:
Pickering, John (NORBORD)
Date:
Tue, 29 Oct 1996 14:53:00 EST
Content-Type:
text/plain
Parts/Attachments:
text/plain (26 lines)
Van Achter asks ...
>
>Is there an easy way to find/calculate the calendar week number. At the
>moment we are using a Cobol program to do this (does not always work
>correctly).
>

Eric Bender answers ...
>
>Unless simply looking at an agenda book qualifies, the logic in your
>program should take into account the following ISO definition of a
>calendar week:
>"Numerical representation of a period of seven calendar days starting
>with Monday and numbered from 01 to 53 with number 01 assigned to
>the first week containing at least four days of the new year..."
>

I can offer a calculation which does the above and conforms to the
ISO definition but it's in Powerhouse. It's set up as a "use" file and
employs only "defines" so it can be "used" in any of the PH
components. Let me know if you have any interest.

John Pickering
JWP Systems Inc
Toronto

ATOM RSS1 RSS2