Skip to content

Document arithmetic operations on Instant #45448

Open
@bluss

Description

@bluss

Some questions that have come up about using Instants:

  1. What meaning does Instant -= Duration have?
  2. What are the preconditions on the instant and the duration, so that it does not panic or cause arithmetic overflow assertions? One user noticed that instant -= duration can trip this assertion (specifically on Windows).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-timeArea: TimeC-enhancementCategory: An issue proposing an enhancement or a PR with one.P-mediumMedium priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions