Display the text box

getdate()

« getcwd | getenv »
<?php
$array 
getdate (
    
  // [int $timestamp = time()]
);
?>
Result
$array = [
  
'seconds' => 25,
  
'minutes' => 6,
  
'hours' => 0,
  
'mday' => 23,
  
'wday' => 6,
  
'mon' => 9,
  
'year' => 2023,
  
'yday' => 265,
  
'weekday' => 'Saturday',
  
'month' => 'September',
  
=> 1695420385,
]
Examples
#1 getdate  ()
See also
date, idate, localtime, setlocale, time