Szabadon felhasználható PHP kódok




Microsoft következő update dátuma:

function microsoft_next_update(){
 $year = date("Y");
 if(date("F")=="December"){
  if(date("d")<=date("d",strtotime("second tuesday ".date("F",strtotime("now"))." ".$year))){
   $year = date("Y");
  }
  else{
   $year = date("Y",strtotime("next year"));
   $month = date("F",strtotime("next month"));
  }
 }
 else{
  if(date("d")<=date("d",strtotime("second tuesday ".date("F",strtotime("now"))." ".$year))){
   $month = date("F");
 }
  else{
   $month = date("F",strtotime("next month"));
  }
 }
 $update = date("Y-m-d",strtotime("second tuesday ".$month." ".$year));
 return $update;
}