Jump to content

gmstrftime vs gmdate


Recommended Posts

The only differences appear to be the codes for the formatting string, and whether or not it respects the current locale setting.

 

For example:

<?php
setlocale(LC_TIME, 'fr_FR');
echo gmdate("M d Y H:i:s") . "<br>";
echo gmstrftime("%b %d %Y %H:%M:%S");

 

gives the output:

May 16 2008 20:06:30

mai 16 2008 20:06:30

Link to comment
https://forums.phpfreaks.com/topic/105897-gmstrftime-vs-gmdate/#findComment-543097
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.