[IronPython] System.TimeSpan can't add time from IronPython
dinov at microsoft.com
Fri Nov 6 11:13:40 PST 2009
span.Add() returns a new TimeSpan object, it does not mutate the existing object. You can see that the result of span.Add(hour) printed out the 2:00:00 time span in the repl that was returned.
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Jan Rouvillain
Sent: Friday, November 06, 2009 11:08 AM
To: Discussion of IronPython
Subject: [IronPython] System.TimeSpan can't add time from IronPython
System.TimeSpan does not add time when using Add:
>>> span = System.TimeSpan(1,0,0)
>>> hour = System.TimeSpan(1,0,0)
<System.TimeSpan object at 0x000000000000002B [02:00:00]>
Should have been '02:00:00', because 1 hour is added.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users