Skip to content

comparison operators are not meaningful for times #1126

Description

@gavinking

We should clarify in the spec that the <, >, <=, and >= operators are not defined for LocalTime.

Why not? Well, because:

  1. Time of day doesn't have a meaningful total order. Times form a topological circle. It's not meaningful to say that 23:59:59 > 00:00:00. That's just completely arbitrary. Is the first time a day after or one second before the second time? You need a date to know for sure.
  2. Oracle has no ANSI-like TIME type, and to emulate it requires jumping through really disgusting hoops.

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