Menu Riverview Church

GMSTRFTIME

Format a GMT/UTC time/date according to locale settings

SYNTAX

gmstrftime ( string $format [, int $timestamp = time() ] ) : string

PARAMETERS

format

See description in strftime().

timestamp

The optional timestamp parameter is an integer Unix timestamp that defaults to the current local time if a timestamp is not given. In other words, it defaults to the value of time().

RETURN

Returns a string formatted according to the given format string using the given timestamp 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 setlocale().

EXAMPLES

FORMAT

2020-10-21 18:28:24

TIMESTAMP

2001-02-03 12:05:06

PHP