Boost logo

Boost Users :

Subject: Re: [Boost-users] Week of the Year calculations?
From: Ramon F Herrera (ramon_at_[hidden])
Date: 2009-09-26 14:43:38


Ramon F Herrera wrote:
>
> I looked at the Date_Time library but couldn't find this.
>
> Need to convert a date into the corresponding week of the year and vice
> versa.
>
> I realize that such thing varies and plan to use the standard most
> common in the USA.
>
> TIA,
>
> -Ramon

Ok, I discovered this:

int week_number() const

Returns the ISO 8601 week number for the date.

Which solves half my problem...

-RFH


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net