How to use gmstrftime in PHP
This article describe about gmstrftime() Function in PHP.
gmstrftime() Function
According to the local setting gmstrftime() function format the time or date.
Syntax
gmstrftime(format, timestamp)
|
Example
<html>
<body>
<?php
echo(strftime("%b %d %Y %X", mktime(20,0,0,10,06,88))."<br />");
echo(gmstrftime("%b %d %Y %X", mktime(20,0,0,10,06,88))."<br />");
echo(gmstrftime("It is %a on %b %d, %Y, %X time zone: %Z",time()));
?>
</body>
</html> |
Output
You may also want to read these related articles Click here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here