Mercurial > p > roundup > code
comparison roundup/date.py @ 2262:a13ec40cf8f5
*** empty log message ***
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Thu, 06 May 2004 02:35:46 +0000 |
| parents | 1f243574af52 |
| children | 6ba57546d212 1cc51a44ce39 |
comparison
equal
deleted
inserted
replaced
| 2261:1bbdd3407eff | 2262:a13ec40cf8f5 |
|---|---|
| 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 17 # | 17 # |
| 18 # $Id: date.py,v 1.67 2004-05-05 00:38:59 richard Exp $ | 18 # $Id: date.py,v 1.68 2004-05-06 02:35:46 richard Exp $ |
| 19 | 19 |
| 20 """Date, time and time interval handling. | 20 """Date, time and time interval handling. |
| 21 """ | 21 """ |
| 22 __docformat__ = 'restructuredtext' | 22 __docformat__ = 'restructuredtext' |
| 23 | 23 |
| 106 >>> d2+i1 | 106 >>> d2+i1 |
| 107 <Date 2004-04-06.22:04:20.000000> | 107 <Date 2004-04-06.22:04:20.000000> |
| 108 >>> d1-i1 | 108 >>> d1-i1 |
| 109 <Date 2003-07-01.00:00:0.000000> | 109 <Date 2003-07-01.00:00:0.000000> |
| 110 ''' | 110 ''' |
| 111 | 111 |
| 112 def __init__(self, spec='.', offset=0, add_granularity=0): | 112 def __init__(self, spec='.', offset=0, add_granularity=0): |
| 113 """Construct a date given a specification and a time zone offset. | 113 """Construct a date given a specification and a time zone offset. |
| 114 | 114 |
| 115 'spec' | 115 'spec' |
| 116 is a full date or a partial form, with an optional added or | 116 is a full date or a partial form, with an optional added or |
