Skip to content

Add to_value for TimeDelta #8732

Closed

Description

@maxnoe

It would be very convienit, if TimeDelta also would support to_value like Quantities do,

e.g.

>>> TimeDelta(1 * u.day).to_value(u.s)
86400.0

Activity

  1. mhvk commented on May 26, 2019

    @mhvk
    Contributor

    @maxnoe - indeed, I've had the same problem, that I wanted to use the faster to_value but then stopped myself from being able to use TimeDelta - see #8762 for the very easy fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions