fork download
  1. <?php
  2. $data = new DateTime('now', new DateTimeZone("America/Sao_Paulo"));
  3. echo 'TimeStamp: '. ($data->getTimestamp() + $data->getOffset());
Runtime error #stdin #stdout #stderr 0.02s 52472KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Fatal error:  Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (America/Sao_Paulo)' in /home/uedvvu/prog.php:2
Stack trace:
#0 /home/uedvvu/prog.php(2): DateTimeZone->__construct('America/Sao_Pau...')
#1 {main}
  thrown in /home/uedvvu/prog.php on line 2