Skip to content

Can create LocalTime with 60 or 61 seconds #807

Closed
@DmitryMak

Description

@DmitryMak

I expect this to throw ArgumentOutOfRangeException, but it doesn't:

new LocalTime(13, 58, 61);

Instead it creates instance that represents 13:59:01

NodaTime (2.0.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions