|
John,
Can you give me a date when week_iso should return 54?
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
From: John Yeung <gallium.arsenide@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 12/01/2014 12:19 PM
Subject: Re: Get Start Date of a Week Number
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>
On Mon, Dec 1, 2014 at 11:27 AM, Roger Harman <roger.harman@xxxxxxxxxxx>
wrote:
Fiscal weeks could be 52, 53, or even 54 (once every 28
years - 2000 was one of them). I remember having to
tweak things to deal with that 54 week year.
In my last post, I said I would recommend using the ISO definition, if
for no other reason than specifically to avoid the 54-week year. But
you bring up a good point, which is that sometimes it's not a choice
you can make.
Since I gave Rob a bit of grief for his 365.4 days, I'll be "fair" and
point out the nit here as well: The 54-week year happens *at most*
every 28 years. Across most century boundaries, occurrences are
separated by 40 years instead of 28 (because most century years are
NOT leap years; 2000 was an oddball because it's divisible by 400).
Using the week system which allows 54-week years, a 54-week year
occurs 13 times in every 400-year period.
John Y.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.