diff options
author | Christopher Kenna <cjk@cs.unc.edu> | 2012-06-13 12:08:28 -0400 |
---|---|---|
committer | Christopher Kenna <cjk@cs.unc.edu> | 2012-06-13 12:08:28 -0400 |
commit | 5cadf1145a20c6767c706959b576e1d7ca1aaefa (patch) | |
tree | feed584a797b2b04e300665dde47ee785214e49e | |
parent | c061f24115bb6bc963232741bf3d508c76286708 (diff) |
Change date format in Python conference script
-rwxr-xr-x | conferences.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/conferences.py b/conferences.py index 067eb6e..8f22d23 100755 --- a/conferences.py +++ b/conferences.py | |||
@@ -56,8 +56,7 @@ class ConferenceDate(object): | |||
56 | def html_date(cls, d): | 56 | def html_date(cls, d): |
57 | if d.is_tbd(): | 57 | if d.is_tbd(): |
58 | return 'TBD' | 58 | return 'TBD' |
59 | # using string format to get '2' and not '02' | 59 | return d.dt.strftime('%m/%d/%y') |
60 | return d.dt.strftime('%b. {0}, %Y'.format(d.dt.day)) | ||
61 | 60 | ||
62 | def __eq__(self, other): | 61 | def __eq__(self, other): |
63 | a_is_tbd, b_is_tbd = self.is_tbd(), other.is_tbd() | 62 | a_is_tbd, b_is_tbd = self.is_tbd(), other.is_tbd() |