aboutsummaryrefslogtreecommitdiffstats
path: root/common/t-gettime.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-01-12tests: Fix t-gettime for a time_t of 64 and a long of 32 bit.Werner Koch1-4/+13
* configure.ac (AC_CHECK_HEADERS): Add stdint.h. * common/t-gettime.c: Include stdint.h. (UINTMAX_C): Define replacement. (test_isotime2epoch): Use UINTMAX_C for the >32 bit constants. -- This is for example the case on 32 bit OpenBSD. Signed-off-by: Werner Koch <[email protected]>
2016-11-05Change all http://www.gnu.org in license notices to https://Werner Koch1-1/+1
--
2016-07-04tests: Add a gettime test for sizeof (time_t) > 4.Werner Koch1-0/+6
* common/t-gettime.c (test_isotime2epoch): Add 4 more tests. Signed-off-by: Werner Koch <[email protected]>
2015-04-10common: Add new function isodate_human_to_tmWerner Koch1-0/+75
* common/gettime.c (isotime_human_p): Add arg date_only. (isodate_human_to_tm): New. * common/t-gettime.c (test_isodate_human_to_tm): New. (main): Call new test. -- This function in intended as replacement for strptime (foo, "%Y-%m-%d", &bar) which is not available under Windows.
2012-06-05Change all quotes in strings and comments to the new GNU standard.Werner Koch1-5/+5
The asymmetric quotes used by GNU in the past (`...') don't render nicely on modern systems. We now use two \x27 characters ('...'). The proper solution would be to use the correct Unicode symmetric quotes here. However this has the disadvantage that the system requires Unicode support. We don't want that today. If Unicode is available a generated po file can be used to output proper quotes. A simple sed script like the one used for en@quote is sufficient to change them. The changes have been done by applying sed -i "s/\`\([^'\`]*\)'/'\1'/g" to most files and fixing obvious problems by hand. The msgid strings in the po files were fixed with a similar command.
2011-03-01Add new functions to convert iso time strings.Werner Koch1-1/+86
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch1-2/+1
We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again.
2008-10-19Fix a bug in estream_snprintf. Found by a failed t-gettime under Windows.Werner Koch1-1/+6
2007-07-10Typo fixes.Werner Koch1-1/+1
iconv detection fix. Use the currect type in t-gettime.
2007-07-05Fixed card key generation of gpg2.Werner Koch1-0/+98
Reveal less information about timings while generating a key.