Vergleich inc/functions_time.php - 1.4.8 - 1.4.15

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 658Zeile 658
	Note that $is_dst is not implemented and is ignored.

Not a very fast algorithm - O(n) operation. Could be optimized to O(1).

	Note that $is_dst is not implemented and is ignored.

Not a very fast algorithm - O(n) operation. Could be optimized to O(1).

 
	
NOTE: returns time() when the year is > 9999

*/
function adodb_mktime($hr,$min,$sec,$mon=false,$day=false,$year=false,$is_dst=false,$is_gmt=false)
{

*/
function adodb_mktime($hr,$min,$sec,$mon=false,$day=false,$year=false,$is_dst=false,$is_gmt=false)
{

Zeile 717Zeile 719
	$_month_table_leaf = array("",31,29,31,30,31,30,31,31,30,31,30,31);

$_total_date = 0;

	$_month_table_leaf = array("",31,29,31,30,31,30,31,31,30,31,30,31);

$_total_date = 0;

	if ($year >= 1970) {



	if($year > 9999) {
return time();
} else if ($year >= 1970) {

		for ($a = 1970 ; $a <= $year; $a++) {
$leaf = _adodb_is_leap_year($a);
if ($leaf == true) {

		for ($a = 1970 ; $a <= $year; $a++) {
$leaf = _adodb_is_leap_year($a);
if ($leaf == true) {