tags: php date time datetime strftime Now that `strftime()` is deprecated: ```php format(time()); # only date $formatter = new IntlDateFormatter('en_GB', IntlDateFormatter::LONG, IntlDateFormatter::LONG); echo $formatter->format(time()); # date time $timestamp = 424343; $d = new DateTime('@'.$timestamp); $dt = $d->format('l Y-m-d H:i:s T'); echo "$p".$dt."\n"; ``` # Mtime example ```php format('l Y-m-d H:i:s T'); echo $dt; ?> ```