Week method (Revisited)

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Nov 18 15:18:03 CST 2004


On 11/18/04 10:56 AM, "Gary Edge" <valentina at panamind.com> wrote:

> After implementing a Gregorian Date to ISO 8601 Week Date algorithm
> found on the net, I still was getting wrong results from  searches.
> 
> Turns out Valentina's week function returns 0 for the date 1/1/2004
> (which falls on a Thursday and therefore is considered week 1 according
> to ISO 8601) and 1 for the following week. This throws all the
> subsequent weeks off -1. ISO Date weeks range from 1 to 53 so this must
> be a bug. Right?

Hard to say Gary.

Btw, In 2.0 we use the IBM ICU library for date time functions.


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------




More information about the Valentina mailing list