一些 刊号期号计算方式

//获取计算
function bjk3qihao(){
	$isse = 123696; //对应的期号时间
	$dd = strtotime('2018-10-22 23:50:40');  //600+20   600+40

	while ($dd < time()){
		$cc = $dd;

		echo date('Y_m-d H:i:s',$cc) . 'cc
'; $dd += tktq($dd,'09:10:40','23:50:40'); echo date('Y_m-d H:i:s',$dd) . 'dd
'; if($dd > time()){ $ff['expect'] = $isse; $ff['opentime'] = $cc; return $ff; }else{ $isse ++; } } } //时间间隔 function tktq($tt,$k,$j){ $checkDayStr = date('Y-m-d ',$tt); $time = $tt; $time1 = strtotime($checkDayStr.$k); $time2 = strtotime($checkDayStr.$j); if($time1 < $time && $time < $time2){ return 600; }else{ return 33610 -9; } }

 

你可能感兴趣的:(彩票期号,刊号期号)