[Ironpython-users] timedelta.total_seconds()

Jeff Hardy jdhardy at gmail.com
Fri Mar 2 20:15:41 CET 2012


No, create a new one. That datetime one is so big (and out of date)
that it might never be closed. I prefer them to be small pieces.

- Jeff

On Fri, Mar 2, 2012 at 11:09 AM, Cesar Mello <cmello at gmail.com> wrote:
> There is a work item for missing datetime features:
>
> http://ironpython.codeplex.com/workitem/17470
>
> So should I just insert a comment instead of creating a new work item?
>
> Thanks!
>
> Best regards
> Mello
>
>
>
>
>
> On Fri, Mar 2, 2012 at 2:10 PM, Jeff Hardy <jdhardy at gmail.com> wrote:
>>
>> Just an oversight. Can you open an issue on ironpython.codeplex.com?
>> Should be easy enough to get this in. If you're up to it, a pull
>> request would be even better :)
>>
>> - Jeff
>>
>> On Fri, Mar 2, 2012 at 8:54 AM, Cesar Mello <cmello at gmail.com> wrote:
>> > Hi!
>> >
>> > This method doesn't seem to be implemented. From
>> > http://docs.python.org/library/datetime.html :
>> > timedelta.total_seconds()
>> >
>> > Return the total number of seconds contained in the duration. Equivalent
>> > to
>> > (td.microseconds + (td.seconds + td.days * 24 * 3600) * 10**6) /10**6
>> > computed with true division enabled.
>> >
>> > Note that for very large time intervals (greater than 270 years on most
>> > platforms) this method will lose microsecond accuracy.
>> >
>> > New in version 2.7.
>> >
>> >
>> > Best regards!
>> > Mello
>> >
>> > _______________________________________________
>> > Ironpython-users mailing list
>> > Ironpython-users at python.org
>> > http://mail.python.org/mailman/listinfo/ironpython-users
>> >
>
>


More information about the Ironpython-users mailing list