thyme icon indicating copy to clipboard operation
thyme copied to clipboard

instance Ord ZonedTime

Open pweaver opened this issue 9 years ago • 0 comments

Currently uses the Generic Deriving

Would it make more sense or have the Ord instance

instance Ord ZonedTime where
    compare a b = compare (f a) (f b)
        where f t = (zonedTimeToUTC t, zonedTimeZone t)

so that ZonedTime is sorted by when the utc time rather than when it happens within the local timezone?

pweaver avatar Aug 20 '16 01:08 pweaver