Skip to content

Fix timestamp subtraction #66

@gadomski

Description

@gadomski

I'm pretty sure this will panic because you can't add calendar units (days or greater) to a Timestamp. It looks like you probably are looking to add 86400s - 1ns right? If so, I'd suggest:

start + jiff::SignedDuration::new(86_400, -1)

Originally posted by @BurntSushi in 3e980e3

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions