betz Sun May 26 10:04:42 2002 EDT
Modified files:
/phpdoc/en/reference/datetime/functions gmstrftime.xml
Log:
example correction: pass LC_* as constants
Index: phpdoc/en/reference/datetime/functions/gmstrftime.xml
diff -u phpdoc/en/reference/datetime/functions/gmstrftime.xml:1.2
phpdoc/en/reference/datetime/functions/gmstrftime.xml:1.3
--- phpdoc/en/reference/datetime/functions/gmstrftime.xml:1.2 Wed Apr 17 02:37:11
2002
+++ phpdoc/en/reference/datetime/functions/gmstrftime.xml Sun May 26 10:04:42
+2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/datetime.xml, last change in rev 1.2 -->
<refentry id="function.gmstrftime">
<refnamediv>
@@ -25,7 +25,7 @@
<title><function>gmstrftime</function> example</title>
<programlisting role="php">
<![CDATA[
-setlocale ('LC_TIME', 'en_US');
+setlocale (LC_TIME, 'en_US');
echo strftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
echo gmstrftime ("%b %d %Y %H:%M:%S", mktime (20,0,0,12,31,98))."\n";
]]>