Skip to content

Support for timespans in min(), max(), etc. #8419

@dotGrim

Description

@dotGrim

Suggestion

Allow timespans to be used in number sorting functions (min, max, ceil, floor, etc.)
For functions that involve rounding, either round to the nearest second or round to an optional timespan argument (1 tick, 5 tick, 2 seconds, etc.)

Image

Why?

Timespans often need to be sorted in this manner already. This would just provide ease of use for messing with timespans.
Timespans can already be sorted (sorted indices of {_lst::*} in descending order), so it's not revolutionary.

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature request, an issue about something that could be improved, or a PR improving something.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions