How to use gmstrftime in PHP

This article describe about gmstrftime() Function in PHP.
  • 1883

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


pic5.jpg

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

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.