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

Amendments to y2038 #9

Closed
wants to merge 17 commits into from
Closed

Amendments to y2038 #9

wants to merge 17 commits into from

Conversation

rdiez
Copy link
Contributor

@rdiez rdiez commented Nov 24, 2015

Hallo Schwern:

I have made all changes as discussed plus a few more. Points left are:

  1. One of the tests was failing on my Linux system before I started making any changes to the project:

mktime64(140728004163928)

have: 12344592500

want: 12344678900

t/mktime64.t ............... Failed 1/17 subtests

Could you please take a look at it?

  1. I am a bit worried that the code in timegm64() that calculates dates
    is not in sync with the code currently in Perl's source code.
    There are other places like safe_year() that have more validation in your version than in Perl.
    You are one of the Perl gurus, aren't you? Could you try to get those changes merged into Perl?

  2. The Perl's source codes uses floating point, which seems a waste of time, search for Perl_fmod().

Thanks,
rdiez

rdiez added 17 commits November 23, 2015 15:17
…he C99 standard says.

Two leap seconds in the same minute are not allowed (the C90 range 0..61 was a defect).
…es not actually guarantee that the 'true' value of a boolean expression is exactly 1.
@schwern
Copy link
Collaborator

schwern commented Dec 5, 2015

Sorry about the test failure. I'll have a look at it as #10.

And yes, we're out of sync with Perl 5. I'll look into it as #13.

@schwern
Copy link
Collaborator

schwern commented Dec 11, 2015

I haven't forgotten about this. I'm off learning a bunch of C so I can do a better job fixing up this project. LMK if there's urgency on getting this integrated.

@rdiez
Copy link
Contributor Author

rdiez commented Apr 25, 2016

It has been a few months now. Any chance of getting at least some of the issues mentioned in the pull request fixed?

@schwern
Copy link
Collaborator

schwern commented Apr 19, 2017

Looks like this was all covered in #14, so I'm going to close this.

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

Successfully merging this pull request may close these issues.

2 participants