Skip to content

TimeSpan.Humanize does not behave as expected #583

Closed
@cryptiklemur

Description

@cryptiklemur

WIth the following timespan of: 296.19:32:06.8100684

Using the following code:

string createdAt = timeSpan.Humanize(10,  minUnit: TimeUnit.Day, maxUnit: TimeUnit.Year);

I would expect the output to be: Something around 9 months, etc. But instead, it shows 2 days

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions