[Checkins] SVN: z3c.caching/trunk/ Make it clear that we need timezone-aware dates

Martin Aspeli optilude at gmx.net
Fri Jan 15 02:01:54 EST 2010


Log message for revision 108135:
  Make it clear that we need timezone-aware dates

Changed:
  U   z3c.caching/trunk/README.txt
  U   z3c.caching/trunk/src/z3c/caching/interfaces.py

-=-
Modified: z3c.caching/trunk/README.txt
===================================================================
--- z3c.caching/trunk/README.txt	2010-01-14 21:44:51 UTC (rev 108134)
+++ z3c.caching/trunk/README.txt	2010-01-15 07:01:53 UTC (rev 108135)
@@ -129,6 +129,10 @@
     
         def __call__():
             """Return the last-modified date, as a Python datetime object.
+            
+            The datetime returned must be timezone aware.
+        
+            May return None if the last modified date cannot be determined.
             """
 
 One implementation exists for this interface: When looked up for a Zope

Modified: z3c.caching/trunk/src/z3c/caching/interfaces.py
===================================================================
--- z3c.caching/trunk/src/z3c/caching/interfaces.py	2010-01-14 21:44:51 UTC (rev 108134)
+++ z3c.caching/trunk/src/z3c/caching/interfaces.py	2010-01-15 07:01:53 UTC (rev 108135)
@@ -67,5 +67,7 @@
     def __call__():
         """Return the last-modified date, as a Python datetime object.
         
+        The datetime returned must be timezone aware.
+        
         May return None if the last modified date cannot be determined.
         """



More information about the checkins mailing list