Skip to content

Negative durations are displayed as positive #719

Description

@jfritzemeier

Title says it all (sry for the bad formatting):

x
[1] "47s" "221s (~3.68 minutes)" "31s"
[4] "7s" "791s (~13.18 minutes)" "29s"
dput(x)
new("Duration", .Data = c(47, -221, 31, 7, -791, 29))

Here the -221 seconds are displayed as ~3.68 minutes. There is no clue that this is actually negative. This is a major issue when debugging. Especially when doing comparisons like:

x <= dseconds(59)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorwipwork in progress

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions