Permalink
Commits on Apr 19, 2017
  1. Put diagnostic formatting back.

    schwern committed Apr 19, 2017
    These are deliberately on two lines and lined up to make visually comparing the
    values easy on the eyes.
  2. Merge pull request #14 from rurban/mktime64-fixes

    schwern committed on GitHub Apr 19, 2017
    mktime64 test fixes, and optimizations
Commits on May 29, 2016
  1. Makefile: fixup linux CFLAGS

    Reini Urban committed May 29, 2016
    on older glibc -DHAS_TM_TM_GMTOFF -DHAS_TM_TM_ZONE is wrong
  2. Fix fragile t/mktime64.t, better IS_LEAP_ABS

    Reini Urban committed May 29, 2016
    use an hour which does not overflow to the next or prev day.
    test all kind of years, esp. leap years with out of bound dates.
    
    add simplier IS_LEAP_ABS test for absolute years, only > 0.
    optimize seconds_between_years adjustment.
  3. %lld => %"PRId64"

    Reini Urban committed May 29, 2016
    use the right format printf specifier, long long or just long
    fix t/asctime64.t.c, use the result of asctime_r_ret2
    add -DHAS_TM_TM_GMTOFF -DHAS_TM_TM_ZONE to linux, using _DEFAULT_SOURCE
    tap: cast year to year_t (int or long)
    time64.h: dont want to include inttypes.h, so hack our own PRId64 define
  4. make: add USE_TM64=1 support

    Reini Urban committed May 29, 2016
  5. make: add DEBUG=1 support

    Reini Urban committed May 29, 2016
  6. add time64.i target

    Reini Urban committed May 29, 2016
    preprocessed with -E
  7. fix tap declarations

    Reini Urban committed May 29, 2016
  8. detect Linux and add _BSD_SOURCE _POSIX_SOURCE

    Reini Urban committed May 29, 2016
Commits on May 28, 2016
  1. detect darwin and add missing HAS_TM defs

    Reini Urban committed May 28, 2016
  2. time64_limits.h is considered private to time64.c

    rdiez committed with Reini Urban Nov 24, 2015
  3. Allegedly, some <termios.h> define a macro called WRAP, so use a long…

    rdiez committed with Reini Urban Nov 24, 2015
    …er name like WRAP_TIME64.
  4. Indexing with the result of IS_LEAP() was risky, as the C standard do…

    rdiez committed with Reini Urban Nov 24, 2015
    …es not actually guarantee that the 'true' value of a boolean expression is exactly 1.
  5. Comment "This code assumes that long longs are 64 bit integers" no lo…

    rdiez committed with Reini Urban Nov 24, 2015
    …nger applies.
  6. Add extern "C" {} for C++ users.

    rdiez committed with Reini Urban Nov 24, 2015
  7. No longer assume that long longs are 64 bit integers, but use the sta…

    rdiez committed with Reini Urban Nov 24, 2015
    …ndard int64_t instead.
  8. "char * tm_zone" changed to "const char *", which also fixes compilat…

    rdiez committed with Reini Urban Nov 24, 2015
    …ion warnings.
  9. Makefile comments for Linux/glibc.

    rdiez committed with Reini Urban Nov 24, 2015
  10. Compilation warnings fixed when not using USE_TM64.

    rdiez committed with Reini Urban Nov 24, 2015
  11. Fixed compilation warnings by changing type of a few "int cycles" var…

    rdiez committed with Reini Urban Nov 23, 2015
    …iables to Year.
  12. Added flag ".DELETE_ON_ERROR:" to makefile, which is almost always a …

    rdiez committed with Reini Urban Nov 23, 2015
    …must.
  13. Allow for just one positive leap second in struct tm, which is what t…

    rdiez committed with Reini Urban Nov 23, 2015
    …he C99 standard says.
    
    Two leap seconds in the same minute are not allowed (the C90 range 0..61 was a defect).
  14. Added "-r" flag to "rm" in make clean target, in order to prevent err…

    rdiez committed with Reini Urban Nov 23, 2015
    …or messages if the files are not found.
  15. "make clean" now removes "bin/check_max" too.

    rdiez committed with Reini Urban Nov 23, 2015
  16. Minor typo.

    rdiez committed with Reini Urban Nov 23, 2015
Commits on Dec 6, 2015
  1. Update the Travis file.

    schwern committed Dec 6, 2015
    * Allow debugging builds by setting a TIME_64_DEBUG flag.
    * Turn off sudo so Travis will use it's new containers (faster builds).
    * Build on OS X (#12)
  2. Add a test_debug target.

    schwern committed Dec 6, 2015
    This will turn on debugging while testing.
Commits on Nov 19, 2015
  1. Update the install instructions about the header files.

    schwern committed Nov 19, 2015
    We were missing time64_limits.h.  Just copy all the header files.
    
    Noticed by "R. Diez" <rdiezmail-temp2@yahoo.de>
Commits on Aug 18, 2014
  1. Fix the Makefile for clang.

    schwern committed Aug 18, 2014
    clang does not like it when you try to compile header files.  Hopefully
    gcc is ok with this as well.