1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25: | <?
echo "<form action=\"$PHP_SELF\" method=\"post\">
<input type=\"text\" name=\"t\" maxlength=\"2\" size=\"2\">.
<input type=\"text\" name=\"mo\" size=\"2\" maxlength=\"2\">.
<input type=\"text\" name=\"j\" size=\"4\" maxlength=\"4\"> -
<input type=\"text\" name=\"h\" size=\"2\" maxlength=\"2\">:
<input type=\"text\" name=\"m\" size=\"2\" maxlength=\"2\">:
<input type=\"text\" name=\"s\" size=\"2\" maxlength=\"2\">
<input type=\"submit\" name=\"Abschicken\" value=\"Umrechnen\">
</form><br><br><br><br>";
if($t || $m || $j) {
$timestamp = mktime($h,$m,$s,$mo,$t,$j);
echo "<b>".date("d.m.Y",$timestamp)."</b>: ". $timestamp;
}
echo "<br><br><hr><br><br>
<form action=\"$PHP_SELF\" method=\"post\">
<input type=\"text\" name=\"ts\" size=\"14\">
<input type=\"submit\" name=\"Abschicken\" value=\"Umrechnen\"></form>
<br><br><br><br>";
if($ts) {
echo "<b>$ts:</b> ".date("d.m.Y - H:i",$ts);
}
?> |