D Documentation  
toISO8601YearWeek
void toISO8601YearWeek(long t, out int year, out int week);


It calculates year and week (1 - 53) from t. The ISO 8601 week 1 is the first week of the year that includes January 4. The first day of the week is monday.

Example
import std.date;
import std.stdio;

int main()	{
	int year, week;
	toISO8601YearWeek( 1333, year, week );
	writef( year, '\n', week );
	return 0;
}

Created using PHP docwiki written by Markus Dangl. Best viewed with Mozilla Firefox.