Skip to content

strange time_diff for large span of time #9

@Yenwod

Description

@Yenwod

Time.diff(Date.new(2003,11,1), Date.new(2014,10,31))

Data returned is:

10 years
12 months,
4 days

The interesting question is that it is not clear what data should be returned for a large span of time like this. I would assume 11 years - 1 day (or 10 years, 11 months, 31 days)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions