gmdate
gmdate
Format a GMT/UTC date/time
string **gmdate** string $format $timestamp
Identical to the function except that
the time returned is Greenwich Mean Time (GMT).
date
format
The format of the outputted date . See the formatting
options for the function.
string``date
Returns a formatted date string.
Voorbeeld: example
<?php
date_default_timezone_set("Europe/Helsinki");
echo date("M d Y H:i:s e", mktime(0, 0, 0, 1, 1, 1998)) . "\n";
echo gmdate("M d Y H:i:s e", mktime(0, 0, 0, 1, 1, 1998));
Jan 01 1998 00:00:00 Europe/Helsinki
Dec 31 1997 22:00:00 UTC
DateTimeImmutable::__construct``DateTimeInterface::format``date``mktime``gmmktime``IntlDateFormatter::format