Display the text box

gmstrftime()

« gmp_xor | grapheme_extract »
<?php
// enter a $time or a $timestamp

date_default_timezone_set(
    
? // string $timezone
);

$timestamp strtotime(
    
 // string $time
);

$string gmstrftime (
    
// string $format
    
  // [int $timestamp = time()]
);
?>
Result
$string = 'Dec 30 1998 23:00:20'
Examples
#1 gmstrftime  (/* $time = "12/31/1998 00:00:20" */
 
"%b %d %Y %H:%M:%S",
 
$timestamp)
See also
date_default_timezone_set, strftime, strtotime