fork(2) download
  1. <?php
  2.  
  3. date_default_timezone_set('Europe/Lisbon');
  4.  
  5. $date = time();
  6. $date = date('Y-m-d', $date);
  7. $hour = date('H:i:s', $date);
  8. echo "Data: ".$date."\n";
  9. echo "Hora: ".$hour;
Success #stdin #stdout #stderr 0.01s 52488KB
stdin
Standard input is empty
stdout
Data: 2016-12-24
Hora: 01:33:36
stderr
PHP Notice:  A non well formed numeric value encountered in /home/Fwfptb/prog.php on line 7