Skip to content

Compare between datetime/timeval and string #459

Description

@joente

Describe the bug
It is possible to do this compare:

"2025-09-24T10:34:45Z" > datetime() > ;  // answer might not be what is expected

However, the result is not meaningful as it is not correctly checked and the following fails:

datetime() > "2025-09-24T10:34:45Z"; // `>` not supported between `datetime` and `str`

To Reproduce
See code in bug description

Expected behavior
This should simply not work, as the user could create an actual datetime object to do the compare.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions