I want to write a function which calculates the timestamp from a week number:
More accurately speaking, it should be the timestamp from the Monday of that week, at 0:00am.
Has anybody got a clue how I can do this? The other way around (calculate weeknr from timestamp is easy).
Code:
function timestampFromWeeknr($iWeekNr, $iYear)
{
//here should come magical calculation
return $iTimeStamp
}
More accurately speaking, it should be the timestamp from the Monday of that week, at 0:00am.
Has anybody got a clue how I can do this? The other way around (calculate weeknr from timestamp is easy).