gmstrftime
gmstrftime
Format a GMT/UTC time/date according to locale settings
`gmdate``IntlDateFormatter::format````php gmstrftime string $format $timestamp
Behaves the same as except that the
time returned is Greenwich Mean Time (GMT). For example, when run
in Eastern Standard Time (GMT -0500), the first line below prints
"Dec 31 1998 20:00:00", while the second prints "Jan 01 1999
01:00:00".
`strftime`
> **Waarschuwing:** > This function depends on operating system locale information, which might
> be inconsistent with each other, or not available at all. Instead use the
> method.
> `IntlDateFormatter::format`
`format`
See description in .
`strftime`
Returns a string formatted according to the given format string
using the given or the current
local time if no timestamp is given. Month and weekday names and
other language dependent strings respect the current locale set
with .
On failure, false is returned.
`timestamp``setlocale`
**Voorbeeld: example**
```php
<?php
setlocale(LC_TIME, 'en_US');
echo strftime("%b %d %Y %H:%M:%S", mktime(20, 0, 0, 12, 31, 98)) . "\n";
echo gmstrftime("%b %d %Y %H:%M:%S", mktime(20, 0, 0, 12, 31, 98)) . "\n";
IntlDateFormatter::format``DateTimeInterface::format``strftime