Mercurial > p > roundup > code
comparison date.py @ 5:72a0ba086b3e
Added CVS keywords $Id$ and $Log$ to all python files.
| author | Anthony Baxter <anthonybaxter@users.sourceforge.net> |
|---|---|
| date | Thu, 19 Jul 2001 05:52:22 +0000 |
| parents | 5e92642cd1f8 |
| children | 3b0a72f54613 |
comparison
equal
deleted
inserted
replaced
| 4:b10f8834cce4 | 5:72a0ba086b3e |
|---|---|
| 1 # $Id: date.py,v 1.2 2001-07-19 05:52:22 anthonybaxter Exp $ | |
| 2 | |
| 1 import time, re, calendar | 3 import time, re, calendar |
| 2 | 4 |
| 3 class Date: | 5 class Date: |
| 4 ''' | 6 ''' |
| 5 As strings, date-and-time stamps are specified with the date in | 7 As strings, date-and-time stamps are specified with the date in |
| 338 print `Date(date) + Interval(interval)` | 340 print `Date(date) + Interval(interval)` |
| 339 | 341 |
| 340 if __name__ == '__main__': | 342 if __name__ == '__main__': |
| 341 test() | 343 test() |
| 342 | 344 |
| 345 # | |
| 346 # $Log: not supported by cvs2svn $ | |
| 347 # | |
| 348 |
