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. Advertising

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:
    765
    Christos TZOTZIOY Georgiou
    Sep 13, 2003
  2. Tim Peters
    Replies:
    0
    Views:
    603
    Tim Peters
    Sep 9, 2003
  3. Wil Schultz

    Creating a timedelta counter...

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

    , Feb 7, 2005, in forum: Python
    Replies:
    0
    Views:
    352
  5. Mr. SweatyFinger
    Replies:
    2
    Views:
    2,250
    Smokey Grindel
    Dec 2, 2006
Loading...

Share This Page