Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Incorrect output for 365 days #4

Open
jacobchrismarsh opened this issue Aug 1, 2024 · 0 comments
Open

Incorrect output for 365 days #4

jacobchrismarsh opened this issue Aug 1, 2024 · 0 comments

Comments

@jacobchrismarsh
Copy link

When creating a FancyDuration with 365 days, it prints out 1y 5d

Code:

use std::time::Duration;
use fancy_duration::FancyDuration;

fn main() {
    println!("{}", FancyDuration(Duration::from_secs(365 * 24 * 60 * 60)));
}

Output

1y 5d
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant