Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative integer conversion to date returns an invalid value #2632

Closed
Oldes opened this issue Dec 21, 2024 · 1 comment
Closed

Negative integer conversion to date returns an invalid value #2632

Oldes opened this issue Dec 21, 2024 · 1 comment

Comments

@Oldes
Copy link
Owner

Oldes commented Dec 21, 2024

Currently:

>> to date! -1
== 1-Jan-1970/-0:00:01 ;<-- invalid date!

The result should be like in Red: 31-Dec-1969/23:59:59

@Oldes
Copy link
Owner Author

Oldes commented Dec 21, 2024

Related issue is with dates before Unix epoch converted to integers:

>> to integer! 31-Dec-1969/23:59:59
== 4294967295 ;<-- should be -1

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

No branches or pull requests

1 participant