|
gmstrftimeFormat a GMT/UTC time/date according to locale settings Warning
This function has been DEPRECATED as of PHP 8.1.0. Relying on this function is highly discouraged. Alternatives to this function include:
Description
stringfalse gmstrftime(string
$format , intnull $timestamp = null )Behaves the same as strftime 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". Warning
This function depends on operating system locale information, which might be inconsistent with each other, or not available at all. Instead use the IntlDateFormatter::format method. Parameters
Return Values
Returns a string formatted according to the given format string
using the given Changelog
Examples
Example #1 gmstrftime example
See Also
|