summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 67e9d3b)
raw | patch | inline | side by side (parent: 67e9d3b)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 5 Aug 2001 07:46:12 +0000 (07:46 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 5 Aug 2001 07:46:12 +0000 (07:46 +0000) |
win32 seems to have problems with %T and no hour... or something...
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@212 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@212 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/date.py | patch | blob | history |
diff --git a/roundup/date.py b/roundup/date.py
index db4f66ea7d5e83d4532ed43bb206f3f667032dd3..60a717b7403668048ed20aa608719fc075a61372 100644 (file)
--- a/roundup/date.py
+++ b/roundup/date.py
-# $Id: date.py,v 1.7 2001-08-02 00:27:04 richard Exp $
+# $Id: date.py,v 1.8 2001-08-05 07:46:12 richard Exp $
import time, re, calendar
def __str__(self):
"""Return this date as a string in the yyyy-mm-dd.hh:mm:ss format."""
- return time.strftime('%Y-%m-%d.%T', (self.year, self.month, self.day,
- self.hour, self.minute, self.second, 0, 0, 0))
+ return '%4d-%02d-%02d.%02d:%02d:%02d'%(self.year, self.month, self.day,
+ self.hour, self.minute, self.second)
def pretty(self):
''' print up the date date using a pretty format...
#
# $Log: not supported by cvs2svn $
+# Revision 1.7 2001/08/02 00:27:04 richard
+# Extended the range of intervals that are pretty-printed before actual dates
+# are displayed.
+#
# Revision 1.6 2001/07/31 09:54:18 richard
# Fixed the 2.1-specific gmtime() (no arg) call in roundup.date. (Paul Wright)
#