Mercurial > p > roundup > code
comparison roundup/date.py @ 1090:9b910e8d987d
removed Log
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 10 Sep 2002 00:19:55 +0000 |
| parents | 5252cc77eaa0 |
| children | 854d45f8b745 |
comparison
equal
deleted
inserted
replaced
| 1089:43ab730ee194 | 1090:9b910e8d987d |
|---|---|
| 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.25 2002-08-23 04:42:43 richard Exp $ | 18 # $Id: date.py,v 1.26 2002-09-10 00:18:20 richard Exp $ |
| 19 | 19 |
| 20 __doc__ = """ | 20 __doc__ = """ |
| 21 Date, time and time interval handling. | 21 Date, time and time interval handling. |
| 22 """ | 22 """ |
| 23 | 23 |
| 457 print `Date(date) + Interval(interval)` | 457 print `Date(date) + Interval(interval)` |
| 458 | 458 |
| 459 if __name__ == '__main__': | 459 if __name__ == '__main__': |
| 460 test() | 460 test() |
| 461 | 461 |
| 462 # | |
| 463 # $Log: not supported by cvs2svn $ | |
| 464 # Revision 1.24 2002/08/21 07:07:27 richard | |
| 465 # In preparing to turn back on link/unlink journal events (by default these | |
| 466 # are turned off) I've: | |
| 467 # - fixed back_anydbm so it can journal those events again (had broken it | |
| 468 # with recent changes) | |
| 469 # - changed the serialisation format for dates and intervals to use a | |
| 470 # numbers-only (and sign for Intervals) string instead of tuple-of-ints. | |
| 471 # Much smaller. | |
| 472 # | |
| 473 # Revision 1.23 2002/07/18 23:07:08 richard | |
| 474 # Unit tests and a few fixes. | |
| 475 # | |
| 476 # Revision 1.22 2002/07/14 06:05:50 richard | |
| 477 # . fixed the date module so that Date(". - 2d") works | |
| 478 # | |
| 479 # Revision 1.21 2002/05/15 06:32:46 richard | |
| 480 # . reverting to dates for intervals > 2 months sucks | |
| 481 # | |
| 482 # Revision 1.20 2002/02/21 23:34:51 richard | |
| 483 # Oops, there's 24 hours in a day, and subtraction of intervals now works | |
| 484 # properly. | |
| 485 # | |
| 486 # Revision 1.19 2002/02/21 23:11:45 richard | |
| 487 # . fixed some problems in date calculations (calendar.py doesn't handle over- | |
| 488 # and under-flow). Also, hour/minute/second intervals may now be more than | |
| 489 # 99 each. | |
| 490 # | |
| 491 # Revision 1.18 2002/01/23 20:00:50 jhermann | |
| 492 # %e is a UNIXism and not documented for Python | |
| 493 # | |
| 494 # Revision 1.17 2002/01/16 07:02:57 richard | |
| 495 # . lots of date/interval related changes: | |
| 496 # - more relaxed date format for input | |
| 497 # | |
| 498 # Revision 1.16 2002/01/08 11:56:24 richard | |
| 499 # missed an import _ | |
| 500 # | |
| 501 # Revision 1.15 2002/01/05 02:27:00 richard | |
| 502 # I18N'ification | |
| 503 # | |
| 504 # Revision 1.14 2001/11/22 15:46:42 jhermann | |
| 505 # Added module docstrings to all modules. | |
| 506 # | |
| 507 # Revision 1.13 2001/09/18 22:58:37 richard | |
| 508 # | |
| 509 # Added some more help to roundu-admin | |
| 510 # | |
| 511 # Revision 1.12 2001/08/17 03:08:11 richard | |
| 512 # fixed prettification of intervals of 1 week | |
| 513 # | |
| 514 # Revision 1.11 2001/08/15 23:43:18 richard | |
| 515 # Fixed some isFooTypes that I missed. | |
| 516 # Refactored some code in the CGI code. | |
| 517 # | |
| 518 # Revision 1.10 2001/08/07 00:24:42 richard | |
| 519 # stupid typo | |
| 520 # | |
| 521 # Revision 1.9 2001/08/07 00:15:51 richard | |
| 522 # Added the copyright/license notice to (nearly) all files at request of | |
| 523 # Bizar Software. | |
| 524 # | |
| 525 # Revision 1.8 2001/08/05 07:46:12 richard | |
| 526 # Changed date.Date to use regular string formatting instead of strftime - | |
| 527 # win32 seems to have problems with %T and no hour... or something... | |
| 528 # | |
| 529 # Revision 1.7 2001/08/02 00:27:04 richard | |
| 530 # Extended the range of intervals that are pretty-printed before actual dates | |
| 531 # are displayed. | |
| 532 # | |
| 533 # Revision 1.6 2001/07/31 09:54:18 richard | |
| 534 # Fixed the 2.1-specific gmtime() (no arg) call in roundup.date. (Paul Wright) | |
| 535 # | |
| 536 # Revision 1.5 2001/07/29 07:01:39 richard | |
| 537 # Added vim command to all source so that we don't get no steenkin' tabs :) | |
| 538 # | |
| 539 # Revision 1.4 2001/07/25 04:09:34 richard | |
| 540 # Fixed offset handling (shoulda read the spec a little better) | |
| 541 # | |
| 542 # Revision 1.3 2001/07/23 07:56:05 richard | |
| 543 # Storing only marshallable data in the db - no nasty pickled class references. | |
| 544 # | |
| 545 # Revision 1.2 2001/07/22 12:09:32 richard | |
| 546 # Final commit of Grande Splite | |
| 547 # | |
| 548 # Revision 1.1 2001/07/22 11:58:35 richard | |
| 549 # More Grande Splite | |
| 550 # | |
| 551 # | |
| 552 # vim: set filetype=python ts=4 sw=4 et si | 462 # vim: set filetype=python ts=4 sw=4 et si |
