Skip to content
Prev 164452 / 398503 Next

getting ISO week

On Thu, Dec 11, 2008 at 2:10 PM, Prof Brian Ripley
<ripley at stats.ox.ac.uk> wrote:
-----

On Thu, Dec 11, 2008 at 2:15 PM, Gabor Grothendieck
<ggrothendieck at gmail.com> wrote:
Thank you both for your replies!

I'm on windows, so prof Ripleys solution does not work (why is this
OS-dependent?).
Regarding Gabor's solution, neither convention follow the ISO 8601
standard, which is used in Europe (and Sweden in particular). See
http://en.wikipedia.org/wiki/ISO_8601#Week_dates .
So it seems that my function does fill a hole, however small....

I know that for me, working with week numbers, which are used quite
heavily in Sweden, have always been a major frustration.
Would it be possible to implement something similar to my solution in
base, and how should I go about making it fit in to the rest of the
date functions?

/Gustaf