ALT ZEIT -> RDDZEIT
RDDZEIT -> ALT ZEIT
if ($action == "2rd") {
settype($rdtime, double);
$rdtime=round(( mktime($stunde,$minute,$sekunde,$monat,$tag,$jahr,0) - mktime(00,00,00,01,05,2001,1) ) / 86400,6);
if ($rdtime < 0) {
$vorzeichen = "-";
$rdtime = -1 * $rdtime;
}
$vorne ="00000";
if ($rdtime >= 10) $vorne ="0000";
if ($rdtime >= 100) $vorne ="000";
if ($rdtime >= 1000) $vorne ="00";
if ($rdtime >= 10000) $vorne ="0";
if ($rdtime >= 100000) $vorne ="";
if ( ($rdtime*1000000)%10 == 0 ) $hinten = "0";
if ( ($rdtime*1000000)%100 == 0 ) $hinten = "00";
if ( ($rdtime*1000000)%1000 == 0 ) $hinten = "000";
if ( ($rdtime*1000000)%10000 == 0 ) $hinten = "0000";
if ( ($rdtime*1000000)%100000 == 0 ) $hinten = "00000";
if ( ($rdtime*1000000)%1000000 == 0 ) $hinten = ",000000";
//if ($tag < 10) $tag = "0". $tag;
//if ($monat < 10) $monat = "0". $monat;
//if ($stunde < 10) $stunde = "0". $stunde;
//if ($minute < 10) $minute = "0". $minute;
//if ($sekunde < 10) $sekunde = "0". $sekunde;
echo"$tag.$monat.$jahr $stunde:$minute:$sekunde = $vorzeichen $vorne$rdtime$hinten";
}
elseif ($action =="2real") {
settype($rdtime, double);
$vorne ="00000";
if ($rdtime >= 10) $vorne ="0000";
if ($rdtime >= 100) $vorne ="000";
if ($rdtime >= 1000) $vorne ="00";
if ($rdtime >= 10000) $vorne ="0";
if ($rdtime >= 100000) $vorne ="";
if ( ($rdtime*1000000)%10 == 0 ) $hinten = "0";
if ( ($rdtime*1000000)%100 == 0 ) $hinten = "00";
if ( ($rdtime*1000000)%1000 == 0 ) $hinten = "000";
if ( ($rdtime*1000000)%10000 == 0 ) $hinten = "0000";
if ( ($rdtime*1000000)%100000 == 0 ) $hinten = "00000";
if ( ($rdtime*1000000)%1000000 == 0 ) $hinten = ",000000";
$unixzeit = ( $rdtime * 86400 ) + mktime(00,00,00,01,05,2001,1);
if ($rdtime < 0) {
$vorzeichen = "-";
$rdtime = -1 * $rdtime;
}
echo "$vorzeichen $vorne$rdtime$hinten = ";
echo strftime ("%d.%m.%Y %T", $unixzeit);
echo" ";
}
?>
|