fork(1) download
  1. <?php
  2.  
  3. $string = '/Date(1504020443813-0300)/';
  4. $timestamp = preg_match( '(\d+)', $string, $matches );
  5.  
  6. echo 'UTC: ' . date( 'd/m/Y', $matches[0]/1000 ) . PHP_EOL;
Success #stdin #stdout 0.03s 23952KB
stdin
Standard input is empty
stdout
UTC: 29/08/2017