why no time() + timedelta() ?

Discussion in 'Python' started by josh, Jan 20, 2005.

  1. josh

    josh Guest

    Why can't timedelta arithmetic be done on time objects?

    (e.g. datetime.time(5)-datetime.timedelta(microseconds=3)

    Nonzero "days" of the timedelta could either be ignored, or trigger an exception.
     
    josh, Jan 20, 2005
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Christos TZOTZIOY Georgiou
    Replies:
    3
    Views:
    1,018
    Christos TZOTZIOY Georgiou
    Sep 13, 2003
  2. Wil Schultz

    Creating a timedelta counter...

    Wil Schultz, Jul 20, 2004, in forum: Python
    Replies:
    2
    Views:
    518
    Wil Schultz
    Jul 23, 2004
  3. time + timedelta

    , Feb 7, 2005, in forum: Python
    Replies:
    0
    Views:
    390
  4. Florian Lindner

    timedelta comparision with gmtime()

    Florian Lindner, Jun 22, 2005, in forum: Python
    Replies:
    1
    Views:
    595
  5. Philipp

    str as param for timedelta

    Philipp, Jan 27, 2006, in forum: Python
    Replies:
    1
    Views:
    490
  6. Mr. SweatyFinger

    why why why why why

    Mr. SweatyFinger, Nov 28, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    1,362
    Mark Rae
    Dec 21, 2006
  7. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,821
    Smokey Grindel
    Dec 2, 2006
  8. flamesrock
    Replies:
    8
    Views:
    801
    Hendrik van Rooyen
    Nov 24, 2006
Loading...