y2038 | Fix time.h on 32 bit machines to work past the year 2038 bug | Command Line Interface library

 by   evalEmpire C Version: Current License: MIT

kandi X-RAY | y2038 Summary

kandi X-RAY | y2038 Summary

y2038 is a C library typically used in Utilities, Command Line Interface applications. y2038 has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

This is an implementation of POSIX time.h which solves the year 2038 bug on systems where time_t is only 32 bits. It is implemented in bog-standard ANSI C. The latest version can be found at It makes use of the system's native 32 bit functions to perform time zone and daylight savings time calculations and thus does not need to ship its own time zone table. Here is a list of the currently implemented functions in time64.h and their POSIX time.h equivalents. localtime64_r localtime_r localtime64 localtime gmtime64_r gmtime_r gmtime64 gmtime asctime64_r asctime_r asctime64 asctime ctime64_r ctime_r ctime64 ctime timelocal64 mktime mktime64 mktime timegm64 timegm (a GNU extension). To install, simply copy time64.c and time64.h into your project and make use of the functions. To test, run "make test". You must have Perl, prove (which comes with a recent version of the Test::Harness Perl module) and bzdiff installed to run the full test suite. It will do a number of unit tests, plus test against a large table of known good values in different time zones.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              y2038 has a low active ecosystem.
              It has 95 star(s) with 19 fork(s). There are 12 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 9 open issues and 5 have been closed. On average issues are closed in 106 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of y2038 is current.

            kandi-Quality Quality

              y2038 has no bugs reported.

            kandi-Security Security

              y2038 has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              y2038 is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              y2038 releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of y2038
            Get all kandi verified functions for this library.

            y2038 Key Features

            No Key Features are available at this moment for y2038.

            y2038 Examples and Code Snippets

            No Code Snippets are available at this moment for y2038.

            Community Discussions

            QUESTION

            touch function in PHP 7 64-bit does not handle dates beyond 2038
            Asked 2019-Aug-01 at 14:47

            On PHP 7.2.14 64-bit, on Windows, touch() cannot set a file's date to a date after 2038. filemtime() will read such a file's date fine (date was set with an external tool).

            Is this expected behavior?
            Is it possible to write code that changes a file's date in a Y2038 friendly way?
            Issue doesn't seem to be in PHP Bug Tracking : Search for "2038"

            Code sample:

            ...

            ANSWER

            Answered 2019-Jun-21 at 18:42

            It's seems that you run into Year 2038 problem, see here: https://en.wikipedia.org/wiki/Year_2038_problem You cannot encode times after 03:14:07 UTC on 19 of January 2038, so you fall back to 13th of December 1901

            Source https://stackoverflow.com/questions/56708666

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install y2038

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/evalEmpire/y2038.git

          • CLI

            gh repo clone evalEmpire/y2038

          • sshUrl

            git@github.com:evalEmpire/y2038.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Command Line Interface Libraries

            ohmyzsh

            by ohmyzsh

            terminal

            by microsoft

            thefuck

            by nvbn

            fzf

            by junegunn

            hyper

            by vercel

            Try Top Libraries by evalEmpire

            perl5i

            by evalEmpirePerl

            gitpan

            by evalEmpirePerl

            method-signatures

            by evalEmpirePerl

            Alien-SVN

            by evalEmpireC

            parfait

            by evalEmpirePerl