Skip to content

DateTime Humanizer : returns hours, days, months, but not weeks #765

@tranb3r

Description

@tranb3r

Why does DateTime Humanizer return a number of hours, days, months, but never return a number of weeks ?
It does not seems consistent with TimeSpan Humanizer.

Example :
TimeSpan.FromDays(7).Humanize() => "1 week"
DateTime.UtcNow.AddDays(7).Humanize() => "7 days from now" (instead of "1 week from now")

Metadata

Metadata

Assignees

No one assigned

    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