Skip to content

Make Period IComparable<Period> #69

Description

@GoogleCodeExporter
I'd like to be able to compare periods for sorting etc.

Clearly this is tricky when months and years are involved, and clearly there's 
no way to create an IAlmostComparableSortOf interface, but it seems likely that 
there is a "common-sense" (or useful) answer to most of the problems:

   4 weeks is less than 1 month (nearly always)
   4 weeks is never more than 1 month (always)
   12 months is equal to 1 year (in most cases)
   52 weeks is less than a whole year (always)
   etc.

And even when there isn't, it's still useful to present an 'almost certainly 
sorted' list to a user instead of not being able to show anything.

Original issue reported on code.google.com by HighTech...@gmail.com on 19 Apr 2012 at 3:42

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions