fork(1) download
  1. <?php
  2.  
  3.  
  4.  
  5. function cymdToTime($d) {
  6. $matches = null;
  7. preg_match('/^(\\d*)?(\\d\\d)(\\d\\d)(\\d\\d)$/', $d, $matches);
  8. return strtotime( (($matches[1] + 19) * 100 + $matches[2]) . '-' . $matches[3] . '-' . $matches[4]);
  9. }
  10.  
  11. echo strftime('%B %d, %Y', cymdToTime(960614));
  12. echo strftime('%B %d, %Y', cymdToTime(1090225));
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
June 14, 1996February 25, 2009