summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d9fdd9a)
raw | patch | inline | side by side (parent: d9fdd9a)
author | jhermann <jhermann@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 23 Jan 2002 20:00:50 +0000 (20:00 +0000) | ||
committer | jhermann <jhermann@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Wed, 23 Jan 2002 20:00:50 +0000 (20:00 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@597 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/date.py | patch | blob | history |
diff --git a/roundup/date.py b/roundup/date.py
index bc96c830f9693f69b4f71c46848fbb1e410cb115..d9ac75815bbceb8fbb93962b5698dbdd8366905a 100644 (file)
--- a/roundup/date.py
+++ b/roundup/date.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: date.py,v 1.17 2002-01-16 07:02:57 richard Exp $
+# $Id: date.py,v 1.18 2002-01-23 20:00:50 jhermann Exp $
__doc__ = """
Date, time and time interval handling.
def pretty(self):
''' print up the date date using a pretty format...
'''
- return time.strftime('%e %B %Y', (self.year, self.month,
+ str = time.strftime('%d %B %Y', (self.year, self.month,
self.day, self.hour, self.minute, self.second, 0, 0, 0))
+ if str[0] == '0': return ' ' + str[1:]
+ return str
def set(self, spec, offset=0, date_re=re.compile(r'''
(((?P<y>\d\d\d\d)-)?((?P<m>\d\d?)-(?P<d>\d\d?))?)? # yyyy-mm-dd
#
# $Log: not supported by cvs2svn $
+# Revision 1.17 2002/01/16 07:02:57 richard
+# . lots of date/interval related changes:
+# - more relaxed date format for input
+#
# Revision 1.16 2002/01/08 11:56:24 richard
# missed an import _
#