[gnue] r9670 - trunk/gnue-common/src/setup

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
Author: reinhard
Date: 2007-06-06 03:21:33 -0500 (Wed, 06 Jun 2007)
New Revision: 9670

Modified:
   trunk/gnue-common/src/setup/GSetup.py
Log:
Added keywords for date and time.


Modified: trunk/gnue-common/src/setup/GSetup.py
===================================================================
--- trunk/gnue-common/src/setup/GSetup.py	2007-06-06 07:47:32 UTC (rev 9669)
+++ trunk/gnue-common/src/setup/GSetup.py	2007-06-06 08:21:33 UTC (rev 9670)
@@ -23,6 +23,7 @@
 
 import sys
 import string
+import time
 import os
 from distutils import log
 from distutils.core import setup
@@ -107,7 +108,10 @@
             ':MINOR:': str(version.minor),
             ':PHASE:': str(version.phase),
             ':BUILD:': str(version.build),
-            ':SVN:': str(version.svn)}
+            ':SVN:': str(version.svn),
+            ':DATE_ISO:': time.strftime('%Y-%m-%d', time.gmtime()),
+            ':DATE_RFC:': time.strftime('%a, %d %b %Y', time.gmtime()),
+            ':TIME:': time.strftime('%H:%M:%S', time.gmtime())}
     # Hack for version numbering schemes that are limited to x.y.z.
     if version.phase == 'final':
         keywords[':FINAL:'] = str(version.build)
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.