derick          Mon Apr  1 12:50:46 2002 EDT

  Modified files:              
    /phpdoc/nl/functions        datetime.xml 
  Log:
  - In sync
  
  
Index: phpdoc/nl/functions/datetime.xml
diff -u phpdoc/nl/functions/datetime.xml:1.12 phpdoc/nl/functions/datetime.xml:1.13
--- phpdoc/nl/functions/datetime.xml:1.12       Tue Mar 26 10:57:15 2002
+++ phpdoc/nl/functions/datetime.xml    Mon Apr  1 12:50:46 2002
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.30 Maintainer: leendert Status: ready -->
+<!-- EN-Revision: 1.69 Maintainer: derick Status: ready -->
  <reference id="ref.datetime">
   <title>Date en Time functies</title>
   <titleabbrev>Date/time</titleabbrev>
@@ -57,9 +57,7 @@
     <methodsynopsis>
      <type>string</type><methodname>date</methodname>
      <methodparam><type>string</type><parameter>format</parameter></methodparam>
-     <methodparam choice="opt"><type>int</type><parameter>
-       timestamp
-      </parameter></methodparam>
+     <methodparam 
+choice="opt"><type>int</type><parameter>timestamp</parameter></methodparam>
     </methodsynopsis>
     <para>
      Geeft een geformatteerde string volgens de gegeven format string
@@ -67,10 +65,10 @@
      local time als geen timestamp gegeven is.
      <note>  
       <para>  
-       The valid range of a timestamp is typically from Fri, 13 Dec 1901
-       20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are  
-       the dates that correspond to the minimum and maximum values for  
-       a 32-bit signed integer.)
+       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
+       tijdstippen die overeenkomen met de minimale en maximale waarden voor
+       een 32-bits signed integer).
       </para>  
       <para>
        Om een timestamp te genereren uit een string representatie van een datum
@@ -194,8 +192,8 @@
       </listitem>
       <listitem>
        <simpara>
-        S - Engelse ordinale suffix voor de dag van de maand, textueel, 2 karakters; 
dus &quot;th&quot;,
-        &quot;nd&quot;
+        S - Engelse ordinale suffix voor de dag van de maand, textueel, 2
+        karakters; dus &quot;th&quot;, &quot;nd&quot;
        </simpara>
       </listitem>
       <listitem>
@@ -251,12 +249,14 @@
      Niet-herkende karakters in de format string zullen afgedrukt
      worden zoals ze zijn. De &quot;Z&quot; format zal altijd &quot;0&quot; 
retourneren
      wanneer gebruik wordt gemaakt van <function>gmdate</function>.
+    </para>
+    <para>
      <example>
       <title><function>date</function> voorbeeld</title>
       <programlisting role="php">
 <![CDATA[  
-print (date (&quot;l dS of F Y h:i:s A&quot;));
-print (&quot;July 1, 2000 is on a &quot; . date (&quot;l&quot;, 
mktime(0,0,0,7,1,2000)));
+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)));
 ]]>  
       </programlisting>
      </example>
@@ -270,7 +270,7 @@
       <title>Escapen van characters in <function>date</function></title>  
        <programlisting role="php">  
 <![CDATA[  
-  echo date("l \\t\h\e jS"); // prints something like 'Saturday the 8th'  
+  echo date("l \\t\h\e jS"); // toont zoiets als 'Saturday the 8th'  
 ]]>  
       </programlisting>
      </example>
@@ -282,11 +282,11 @@
       <title>
        <function>date</function> en <function>mktime</function> voorbeeld
       </title>
-      <programlisting>
+      <programlisting role="php">
 <![CDATA[  
-$tomorrow  = mktime (0,0,0,date(&quot;m&quot;)  
,date(&quot;d&quot;)+1,date(&quot;Y&quot;));
-$lastmonth = mktime (0,0,0,date(&quot;m&quot;)-1,date(&quot;d&quot;),  
date(&quot;Y&quot;));
-$nextyear  = mktime (0,0,0,date(&quot;m&quot;),  date(&quot;d&quot;),  
date(&quot;Y&quot;)+1);
+$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>
@@ -317,7 +317,7 @@
 $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\o\n\t\h');     // 17:03:17 m is month
+$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
 ]]>
       </programlisting>
@@ -411,11 +411,11 @@
       </title>
       <programlisting role="php">
 <![CDATA[
-$today = getdate(); 
-$month = $today['month']; 
-$mday = $today['mday']; 
-$year = $today['year']; 
-echo "$month $mday, $year";
+$vandaag = getdate(); 
+$maand = $vandaag['month']; 
+$mdag = $vandaag['mday']; 
+$jaar = $vandaag['year']; 
+echo "$maand $mdag, $jaar";
 ]]>
       </programlisting>
      </example>
@@ -486,8 +486,8 @@
       <title><function>gmdate</function> voorbeeld</title>
       <programlisting role="php">
 <![CDATA[
-echo date (&quot;M d Y H:i:s&quot;, mktime (0,0,0,1,1,1998));
-echo gmdate (&quot;M d Y H:i:s&quot;, mktime (0,0,0,1,1,1998));
+echo date ("M d Y H:i:s", mktime (0,0,0,1,1,1998));
+echo gmdate ("M d Y H:i:s", mktime (0,0,0,1,1,1998));
 ]]>
       </programlisting>
      </example>
@@ -548,8 +548,8 @@
       <programlisting role="php">
 <![CDATA[
 setlocale ('LC_TIME', 'en_US');
-echo strftime (&quot;%b %d %Y %H:%M:%S&quot;, mktime 
(20,0,0,12,31,98)).&quot;\n&quot;;
-echo gmstrftime (&quot;%b %d %Y %H:%M:%S&quot;, mktime 
(20,0,0,12,31,98)).&quot;\n&quot;;
+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>
@@ -569,12 +569,8 @@
     <title>Omschrijving</title>
      <methodsynopsis>
       <type>array</type><methodname>localtime</methodname>
-      <methodparam choice="opt"><type>int</type><parameter>
-        timestamp
-       </parameter></methodparam>
-      <methodparam choice="opt"><type>bool</type><parameter>
-        is_associative
-       </parameter></methodparam>
+      <methodparam 
+choice="opt"><type>int</type><parameter>timestamp</parameter></methodparam>
+      <methodparam 
+choice="opt"><type>bool</type><parameter>is_associative</parameter></methodparam>
      </methodsynopsis>
     <para>
      De <function>localtime</function> functie retourneert een array
@@ -658,6 +654,9 @@
      January 1, 1970 GMT) is, en msec is het microseconden gedeelte.
      Deze functie is alleen beschikbaar op operating systems die de
      gettimeofday() system call ondersteunen.
+    </para>
+    <para>
+     Beide delen van de teruggegeven string zijn in eenheden van seconden.
      <example>
       <title><function>microtime</function> voorbeeld</title>
       <programlisting role="php">
@@ -726,9 +725,9 @@
     </para>
     <para>
      <parameter>Is_dst</parameter> kan naar 1 gezet worden als de
-     tijd tijdens daylight savings time is, 0 wanneer dat niet zo is,
-     of -1 (default) als het niet bekend is of de tijd zich in daylight
-     savings time bevindt.
+     tijd tijdens zomertijd valt, of 0 wannneer dat niet zo is,
+     of -1 (default) als het niet bekend is of de tijd zich in zomertijd
+     bevindt.
     </para>
     <note>
      <para>
@@ -744,10 +743,10 @@
       <title><function>mktime</function> voorbeeld</title>
       <programlisting>
 <![CDATA[
-echo date (&quot;M-d-Y&quot;, mktime (0,0,0,12,32,1997));
-echo date (&quot;M-d-Y&quot;, mktime (0,0,0,13,1,1997));
-echo date (&quot;M-d-Y&quot;, mktime (0,0,0,1,1,1998));
-echo date (&quot;M-d-Y&quot;, mktime (0,0,0,1,1,98));
+echo date ("M-d-Y", mktime (0,0,0,12,32,1997));
+echo date ("M-d-Y", mktime (0,0,0,13,1,1997));
+echo date ("M-d-Y", mktime (0,0,0,1,1,1998));
+echo date ("M-d-Y", mktime (0,0,0,1,1,98));
 ]]>
       </programlisting>
      </example>
@@ -765,11 +764,11 @@
       <title>Laatste dag van volgende maand</title>
       <programlisting role="php">
 <![CDATA[
-$lastday = mktime (0,0,0,3,0,2000);
-echo strftime (&quot;Last day in Feb 2000 is: %d&quot;, $lastday);
+$laatste = mktime (0,0,0,3,0,2000);
+echo strftime ("De laatste dag in februari 2000 is: %d", $laatste);
      
-$lastday = mktime (0,0,0,4,-31,2000);
-echo strftime (&quot;Last day in Feb 2000 is: %d&quot;, $lastday);
+$laaatste = mktime (0,0,0,4,-31,2000);
+echo strftime ("De laatste dag in februari 2000 is: %d", $laatste);
 ]]>
       </programlisting>
      </example>
@@ -1024,11 +1023,11 @@
       <programlisting role="php">
 <![CDATA[
 setlocale (LC_TIME, "C");
-print (strftime ("%A in Finnish is "));
+print (strftime ("%A in het Fins is "));
 setlocale (LC_TIME, "fi_FI");
-print (strftime ("%A, in French "));
+print (strftime ("%A, in het Frans "));
 setlocale (LC_TIME, "fr_FR");
-print (strftime ("%A and in German "));
+print (strftime ("%A en in het Duits "));
 setlocale (LC_TIME, "de_DE");
 print (strftime ("%A.\n"));
 ]]>
@@ -1082,21 +1081,57 @@
       <methodparam><type>string</type><parameter>time</parameter></methodparam>
       <methodparam 
choice="opt"><type>int</type><parameter>now</parameter></methodparam>
      </methodsynopsis>
-    <para>
+    <simpara>
      De functie verwacht een string mee te krijgen die een engelse
      date format bevat en zal proberen dat format te parsen naar 
-     een UNIX timestamp.
+     een UNIX timestamp, relatief ten opzichte van de timestamp meegegeven in
+     <parameter>now</parameter>, of de huidige tijd als deze parameter niet is
+     meegegeven. Als er een fout optreed, wordt -1 teruggegeven.
+    </simpara>
+    <simpara>
+     Omdat <function>strtotime</function> zich gedraagd zoals de GNU datum
+     syntax, vind u meer informatie in de GNU manual pagina getiteld <ulink
+     url="&url.gnu.man.date-input;">Date Input Formats</ulink>. Hierin is de
+     geldige syntax voor de <parameter>time</parameter> parameter.
+    </simpara>
+    <para>
      <example>
       <title><function>strtotime</function> voorbeelden</title>
       <programlisting role="php">
-echo strtotime (&quot;now&quot;) . &quot;\n&quot;;
-echo strtotime (&quot;10 September 2000&quot;) . &quot;\n&quot;;
-echo strtotime (&quot;+1 day&quot;) . &quot;\n&quot;;
-echo strtotime (&quot;+1 week&quot;) . &quot;\n&quot;;
-echo strtotime (&quot;+1 week 2 days 4 hours 2 seconds&quot;) . &quot;\n&quot;;
+<![CDATA[
+<?php
+echo strtotime ("now") . "\n";
+echo strtotime ("10 September 2000") . "\n";
+echo strtotime ("+1 day") . "\n";
+echo strtotime ("+1 week") . "\n";
+echo strtotime ("+1 week 2 days 4 hours 2 seconds") . "\n";
+]]>
+      </programlisting>
+     </example>
+    </para>
+    <para>
+     <example>
+      <title>Controleren op fouten</title>
+      <programlisting role="php">
+<![CDATA[
+$str = 'Niet Goed';
+if (($timestamp = strtotime($str)) === -1) {
+    echo "De string ($str) is niet geldig";
+} else {
+    echo "$str == ". date('l dS of F Y h:i:s A',$timestamp);
+}
+]]>
       </programlisting>
      </example>
     </para>
+    <note>
+     <para>
+      De geldige reeks van timestamps is normal van vrijdag 13 Dec 1901
+      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 van een
+      32-bits signed integer.
+     </para>
+    </note>
    </refsect1>
   </refentry>
   


Reply via email to