date2unix.php: pour convertir tout format de temps string → format unix / EPOC

<form method="GET">
<input type=text name=quand>
<input type=submit>
</form>
<?php
$quand=$_GET['quand'];
if($quand==""||!isset($quand)) {
	echo strtotime("now"),"\n";;
}
	echo strtotime($quand),"\n";;
 
?>

example

 
info/date2unix.txt · Dernière modification: 2008/11/11 11:37 (modification externe)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki