fork download
  1. <?php
  2.  
  3. $date = strtotime("2013-10-20 10:32:12");
  4.  
  5. "year" => date("Y", $date),
  6. "month" => date("m", $date),
  7. "day" => date("d", $date),
  8. "hour" => date("H", $date),
  9. "minutes" => date("i", $date),
  10. "seconds" => date("s", $date),
  11. ));
Success #stdin #stdout 0.01s 20520KB
stdin
Standard input is empty
stdout
Array
(
    [year] => 2013
    [month] => 10
    [day] => 20
    [hour] => 10
    [minutes] => 32
    [seconds] => 12
)