[Checkins] SVN: van.timeformat/trunk/ Add time examples to the documentation

Brian Sutherland jinty at web.de
Mon Apr 4 04:03:26 EDT 2011


Log message for revision 121249:
  Add time examples to the documentation

Changed:
  U   van.timeformat/trunk/CHANGES.txt
  U   van.timeformat/trunk/van/timeformat/README.txt
  U   van.timeformat/trunk/van/timeformat/zpt.txt

-=-
Modified: van.timeformat/trunk/CHANGES.txt
===================================================================
--- van.timeformat/trunk/CHANGES.txt	2011-04-04 06:39:30 UTC (rev 121248)
+++ van.timeformat/trunk/CHANGES.txt	2011-04-04 08:03:26 UTC (rev 121249)
@@ -6,7 +6,7 @@
 
 Features:
 
-- None.
+- Add time examples to the documentation.
 
 Bugfixes:
 

Modified: van.timeformat/trunk/van/timeformat/README.txt
===================================================================
--- van.timeformat/trunk/van/timeformat/README.txt	2011-04-04 06:39:30 UTC (rev 121248)
+++ van.timeformat/trunk/van/timeformat/README.txt	2011-04-04 08:03:26 UTC (rev 121249)
@@ -119,6 +119,11 @@
 Localized formatting examples
 +++++++++++++++++++++++++++++
 
+Short times:
+
+    >>> print ltimefmt(mydate, us, category="time", length="short")
+    12:00 AM
+
 Short dates:
 
     >>> print ltimefmt(mydate, us, category="date", length="short")

Modified: van.timeformat/trunk/van/timeformat/zpt.txt
===================================================================
--- van.timeformat/trunk/van/timeformat/zpt.txt	2011-04-04 06:39:30 UTC (rev 121248)
+++ van.timeformat/trunk/van/timeformat/zpt.txt	2011-04-04 08:03:26 UTC (rev 121249)
@@ -12,6 +12,7 @@
     ... <html>
     ...   <body tal:define="mydatetime python:modules['datetime'].datetime(1975, 12, 17, 5, 24, 36)">
     ...       RFC 2822 date         : <span tal:replace="timefmt:rfc2822:mydatetime" />
+    ...       Medium Time           : <span tal:replace="ltimefmt:time:medium:mydatetime" />
     ...       Medium Date           : <span tal:replace="ltimefmt:date:medium:mydatetime" />
     ...       Medium DateTime       : <span tal:replace="ltimefmt:dateTime:medium:mydatetime" />
     ...       Python Expr (ltimefmt): <span tal:replace="ltimefmt:dateTime:long:python:modules['datetime'].date(1975, 12, 17)" />
@@ -27,6 +28,7 @@
     <html>
       <body>
           RFC 2822 date         : Wed, 17 Dec 1975 05:24:36 +0000
+          Medium Time           : 05:24:36
           Medium Date           : 1975 12 17
           Medium DateTime       : 1975 12 17  05:24:36
           Python Expr (ltimefmt): 1975 12 17  00:00:00 +000
@@ -41,6 +43,7 @@
     <html>
       <body>
           RFC 2822 date         : Wed, 17 Dec 1975 05:24:36 +0000
+          Medium Time           : 05:24:36
           Medium Date           : 17.12.1975
           Medium DateTime       : 17.12.1975 05:24:36
           Python Expr (ltimefmt): 17. Dezember 1975 00:00:00 +000



More information about the checkins mailing list