aboutsummaryrefslogtreecommitdiffstats
path: root/common/gettime.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-12-14common: Change license of some modules to LGPLv3+/GPLv2+.Werner Koch1-5/+15
* common/status.c: Change from GPLv3 to LGPLv3+/GPLv2+. * common/status.h: Ditto. * common/yesno.c: Ditto. * common/common-defs.h: Ditto. * common/gettime.h: Ditto. * common/keyserver.h: Ditto. -- This is shared code and trivial enough to allow use under GPLv2+ so to allow use by GPLv2only software. Some of the headers are simply adjusted to the license of their implementation. Signed-off-by: Werner Koch <[email protected]>
2015-04-10common: Add new function gnupg_gmtime.Werner Koch1-0/+1
* common/gettime.c (gnupg_gmtime): New. (gnupg_get_isotime): Use it. Also take care of an gmtime_t returning an error. -- The fix in gnupg_get_isotime is only to cover up a theoretical broken time (e.g. a value of (time_t)(-2) which is not mapped beyond 2038 on 32 bit systems). Signed-off-by: Werner Koch <[email protected]>
2015-04-10common: Add new function isodate_human_to_tmWerner Koch1-1/+2
* 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.
2015-03-23Import _gpgme_parse_timestamp from gpgme as parse_timestamp.Neal H. Walfield1-0/+1
* common/gettime.h (parse_timestamp): New declaration. * common/gettime.c (_win32_timegm): New function imported from gpgme/src/conversion.c:_gpgme_timegm. (parse_timestamp): New function imported from gpgme/src/conversion.c:_gpgme_parse_timestamp. -- Signed-off-by: Neal H. Walfield <[email protected]>
2014-03-18common: New function elapsed_time_string.Werner Koch1-0/+2
* common/gettime.c (elapsed_time_string): New.
2012-04-26remove doubled words in a commentJim Meyering1-3/+3
2011-03-01Add new functions to convert iso time strings.Werner Koch1-0/+3
2010-04-20Add a separate header for time related fucntions.Werner Koch1-0/+51