get current unix timestamp in php code example Example: php time <?php $t=time(); echo($t . "<br>"); echo(date("Y-m-d",$t)); ?>