cvs: smarty /docs/en/designers language-modifiers.xml

"Mehdi Achour" <[email protected]>
Newsgroups gmane.comp.php.cvs.smarty
Message-ID <cvsdidou1080493162@cvsserver>
didou		Sun Mar 28 11:59:22 2004 EDT

  Modified files:              
    /smarty/docs/en/designers	language-modifiers.xml 
  Log:
  get rid of this ugly programlisting hack
  
http://cvs.php.net/diff.php/smarty/docs/en/designers/language-modifiers.xml?r1=1.1&r2=1.2&ty=u
Index: smarty/docs/en/designers/language-modifiers.xml
diff -u smarty/docs/en/designers/language-modifiers.xml:1.1 smarty/docs/en/designers/language-modifiers.xml:1.2
--- smarty/docs/en/designers/language-modifiers.xml:1.1	Sun Mar 28 10:15:37 2004
+++ smarty/docs/en/designers/language-modifiers.xml	Sun Mar 28 11:59:22 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
     <chapter id="language.modifiers">
      <title>Variable Modifiers</title>
      <para>
@@ -334,92 +334,131 @@
 Monday, February 5, 2001
 14:33:00</programlisting>
 </example>
-<example>
-<title>date_format conversion specifiers</title>
-<programlisting>
+<para>
+date_format conversion specifiers:
+<itemizedlist>
+ <listitem>
 %a - abbreviated weekday name according to the current locale
-
+ </listitem>
+ <listitem>
 %A - full weekday name according to the current locale
-
+ </listitem>
+ <listitem>
 %b - abbreviated month name according to the current locale
-
+ </listitem>
+ <listitem>
 %B - full month name according to the current locale
-
+ </listitem>
+ <listitem>
 %c - preferred date and time representation for the current locale
-
+ </listitem>
+ <listitem>
 %C - century number (the year divided by 100 and truncated to an integer, range 00 to 99)
-
+ </listitem>
+ <listitem>
 %d - day of the month as a decimal number (range 00 to 31)
-
+ </listitem>
+ <listitem>
 %D - same as %m/%d/%y
-
-%e - day of the month as a decimal number, a single digit is preceded by a
-space (range 1 to 31)
-
+ </listitem>
+ <listitem>
+%e - day of the month as a decimal number, a single digit is preceded by a space (range 1 to 31)
+ </listitem>
+ <listitem>
 %g - Week-based year within century [00,99]
-
+ </listitem>
+ <listitem>
 %G - Week-based year, including the century [0000,9999]
-
+ </listitem>
+ <listitem>
 %h - same as %b
-
+ </listitem>
+ <listitem>
 %H - hour as a decimal number using a 24-hour clock (range 00 to 23)
-
+ </listitem>
+ <listitem>
 %I - hour as a decimal number using a 12-hour clock (range 01 to 12)
-
+ </listitem>
+ <listitem>
 %j - day of the year as a decimal number (range 001 to 366)
-
+ </listitem>
+ <listitem>
 %k - Hour (24-hour clock) single digits are preceded by a blank. (range 0 to 23)
-
-%l - hour as a decimal number using a 12-hour clock, single digits preceeded by
-a space (range 1 to 12)
-
+ </listitem>
+ <listitem>
+%l - hour as a decimal number using a 12-hour clock, single digits preceeded by a space (range 1 to 12)
+ </listitem>
+ <listitem>
 %m - month as a decimal number (range 01 to 12)
-
+ </listitem>
+ <listitem>
 %M - minute as a decimal number
-
+ </listitem>
+ <listitem>
 %n - newline character
-
+ </listitem>
+ <listitem>
 %p - either `am' or `pm' according to the given time value, or the corresponding strings for the current locale
-
+ </listitem>
+ <listitem>
 %r - time in a.m. and p.m. notation
-
+ </listitem>
+ <listitem>
 %R - time in 24 hour notation
-
+ </listitem>
+ <listitem>
 %S - second as a decimal number
-
+ </listitem>
+ <listitem>
 %t - tab character
-
+ </listitem>
+ <listitem>
 %T - current time, equal to %H:%M:%S
-
+ </listitem>
+ <listitem>
 %u - weekday as a decimal number [1,7], with 1 representing Monday
-
+ </listitem>
+ <listitem>
 %U - week number of the current year as a decimal number, starting with the first Sunday as the first day of the first week
-
-%V - The ISO 8601:1988 week number of the current year as a decimal number, range 01 to 53, where week 1
-is the first week that has at least 4 days in the current year, and with Monday as the first day of the week.
-
+ </listitem>
+ <listitem>
+%V - The ISO 8601:1988 week number of the current year as a decimal number, range 01 to 53, where week 1 is the first week that has at least 4 days in the current year, and with Monday as the first day of the week.
+ </listitem>
+ <listitem>
 %w - day of the week as a decimal, Sunday being 0
-
+ </listitem>
+ <listitem>
 %W - week number of the current year as a decimal number, starting with the first Monday as the first day of the first week
-
+ </listitem>
+ <listitem>
 %x - preferred date representation for the current locale without the time
-
+ </listitem>
+ <listitem>
 %X - preferred time representation for the current locale without the date
-
+ </listitem>
+ <listitem>
 %y - year as a decimal number without a century (range 00 to 99)
-
+ </listitem>
+ <listitem>
 %Y - year as a decimal number including the century
-
+ </listitem>
+ <listitem>
 %Z - time zone or name or abbreviation
-
+ </listitem>
+ <listitem>
 %% - a literal `%' character
-
-
-PROGRAMMERS NOTE: date_format is essentially a wrapper to PHP's strftime()
-function. You may have more or less conversion specifiers available depending
-on your system's strftime() function where PHP was compiled. Check your
-system's manpage for a full list of valid specifiers.</programlisting>
-</example>
+ </listitem>
+</itemizedlist>
+<note>
+ <title>Programmers note</title>
+ <para>
+  date_format is essentially a wrapper to PHP's strftime()
+  function. You may have more or less conversion specifiers available depending
+  on your system's strftime() function where PHP was compiled. Check your
+  system's manpage for a full list of valid specifiers.
+ </para>
+</note>
+</para>
 
 		</sect1>
 		<sect1 id="language.modifier.default">
@@ -1198,4 +1237,4 @@
 vim600: syn=xml fen fdm=syntax fdl=2 si
 vim: et tw=78 syn=sgml
 vi: ts=1 sw=1
--->
\ No newline at end of file
+-->

-- 
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.