derick Wed Jun 5 14:52:54 2002 EDT
Modified files:
/phpdoc-nl/reference/datetime/functions date.xml gmstrftime.xml
Log:
- Getting in sync with EN and localized some translations/examples
Index: phpdoc-nl/reference/datetime/functions/date.xml
diff -u phpdoc-nl/reference/datetime/functions/date.xml:1.3
phpdoc-nl/reference/datetime/functions/date.xml:1.4
--- phpdoc-nl/reference/datetime/functions/date.xml:1.3 Fri May 24 13:18:43 2002
+++ phpdoc-nl/reference/datetime/functions/date.xml Wed Jun 5 14:52:54 2002
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- EN-Revision: 1.3 Maintainer: derick Status: ready -->
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<refentry id="function.date">
<refnamediv>
<refname>date</refname>
@@ -20,9 +20,10 @@
<note>
<para>
De geldige reeks van timestamps is normaal van vrijdag 13 Dec 1901
- 20:45:54 GMT tot Dinsdag 19 Jan 2038 03:14:07 GMT. (Dit zijn de
+ 20:45:54 GMT tot dinsdag 19 Jan 2038 03:14:07 GMT. (Dit zijn de
tijdstippen die overeenkomen met de minimale en maximale waarden voor
- een 32-bits signed integer).
+ een 32-bits signed integer). Windows limiteerd deze reeks tot datums
+ tussen 01-01-1970 en 19-01-2038.
</para>
<para>
Om een timestamp te genereren uit een string representatie van een datum
@@ -209,8 +210,10 @@
<title><function>date</function> voorbeeld</title>
<programlisting role="php">
<![CDATA[
-print (date ("l dS of F Y h:i:s A"));
-print ("July 1, 2000 is op een " . date ("l", mktime(0,0,0,7,1,2000)));
+<?php
+ print (date ("l dS of F Y h:i:s A"));
+ print ("1 juli 2000 is op een ". date ("l", mktime(0, 0, 0, 7, 1, 2000)));
+?>
]]>
</programlisting>
</example>
@@ -223,8 +226,10 @@
<example>
<title>Escapen van characters in <function>date</function></title>
<programlisting role="php">
-<![CDATA[
- echo date("l \\t\h\e jS"); // toont zoiets als 'Saturday the 8th'
+<![CDATA[
+<?php
+ echo date("l \\t\h\e jS"); // toont zoiets als 'Saturday the 8th'
+?>
]]>
</programlisting>
</example>
@@ -237,10 +242,12 @@
<function>date</function> en <function>mktime</function> voorbeeld
</title>
<programlisting role="php">
-<![CDATA[
-$tomorrow = mktime (0,0,0,date("m") ,date("d")+1,date("Y"));
-$lastmonth = mktime (0,0,0,date("m")-1,date("d"), date("Y"));
-$nextyear = mktime (0,0,0,date("m"), date("d"), date("Y")+1);
+<![CDATA[
+<?php
+ $tomorrow = mktime (0, 0, 0, date("m"), date("d") + 1, date("Y"));
+ $lastmonth = mktime (0, 0, 0, date("m") - 1, date("d"), date("Y"));
+ $nextyear = mktime (0, 0, 0, date("m"), date("d"), date("Y") + 1);
+?>
]]>
</programlisting>
</example>
@@ -263,16 +270,18 @@
<title><function>date</function> Formatting</title>
<programlisting role="php">
<![CDATA[
-/* Today is March 10th, 2001, 5:16:18 pm */
-$today = date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm
-$today = date("m.d.y"); // 03.10.01
-$today = date("j, n, Y"); // 10, 3, 2001
-$today = date("Ymd"); // 20010310
-$today = date('h-i-s, j-m-y, it is w Day z '); // 05-16-17, 10-03-01, 1631 1618 6
Fripm01
-$today = date('\i\t \i\s \t\h\e jS \d\a\y.'); // It is the 10th day.
-$today = date("D M j G:i:s T Y"); // Sat Mar 10 15:16:08 MST 2001
-$today = date('H:m:s \m \i\s\ \m\a\a\n\d'); // 17:03:17 m is maand
-$today = date("H:i:s"); // 17:16:17
+<?php
+ /* Vandaag is het 10 maart 2001, 17:16:18 */
+ echo date("F j, Y, g:i a"); // March 10, 2001, 5:16 pm
+ echo date("m.d.y"); // 03.10.01
+ echo date("j, n, Y"); // 10, 3, 2001
+ echo date("Ymd"); // 20010310
+ echo date('h-i-s, j-m-y, it is w Day z '); // 05-16-17, 10-03-01, 1631 1618 6
+Fripm01
+ echo date('\i\t \i\s \t\h\e jS \d\a\y.'); // It is the 10th day.
+ echo date("D M j G:i:s T Y"); // Sat Mar 10 15:16:08 MST 2001
+ echo date('H:m:s \m \i\s\ \m\a\a\n\d'); // 17:03:17 m is maand
+ echo date("H:i:s"); // 17:16:17
+?>
]]>
</programlisting>
</example>
Index: phpdoc-nl/reference/datetime/functions/gmstrftime.xml
diff -u phpdoc-nl/reference/datetime/functions/gmstrftime.xml:1.2
phpdoc-nl/reference/datetime/functions/gmstrftime.xml:1.3
--- phpdoc-nl/reference/datetime/functions/gmstrftime.xml:1.2 Wed Apr 17 03:14:08
2002
+++ phpdoc-nl/reference/datetime/functions/gmstrftime.xml Wed Jun 5 14:52:54
+2002
@@ -1,8 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- splitted from ./nl/functions/datetime.xml, last change in rev 1.1 -->
-<!-- last change to 'gmstrftime' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: 1.2 Maintainer: derick Status: ready -->
-<!-- OLD-Revision: 1.70/EN.1.2 -->
+<!-- $Revision: 1.3 $ -->
+<!-- EN-Revision: 1.3 Maintainer: derick Status: ready -->
<refentry id="function.gmstrftime">
<refnamediv>
<refname>gmstrftime</refname>
@@ -19,17 +17,20 @@
</methodsynopsis>
<para>
Gedraagt zich hetzelfde als <function>strftime</function> behalve dat de
- time wordt teruggegeven als Greenwich Mean Time (GMT). Bijvoorbeeld wanneer
- uitgevoerd in Eastern Standard Time (GMT -0500); de eerste regel hieronder
- print "Dec 31 1998 20:00:00", terwijl de tweede print
- "Jan 01 1999 01:00:00".
+ tijd wordt teruggegeven als Greenwich Mean Time (GMT). Als bijvoorbeeld
+ het onderstaande script wordt uitgevoerd in Midden Europese Tijd
+ (Nederland, GMT +0100) zal de eerste regel hieronder printen "dec 31
+ 1998 20:00:00", terwijl de tweede regel "dec 01 1999
+ 19:00:00" print.
<example>
<title><function>gmstrftime</function> voorbeeld</title>
<programlisting role="php">
<![CDATA[
-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";
+<?php
+ setlocale (LC_TIME, 'nl_NL');
+ 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";
+?>
]]>
</programlisting>
</example>