Home GnuPG
Diffusion GnuPG 5d60c7f7e05a

common: Add new function gnupg_gmtime.
5d60c7f7e05aUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

common: Add new function gnupg_gmtime.

* 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 <wk@gnupg.org>

Details

Provenance
wernerAuthored on Apr 10 2015, 12:24 PM
Parents
rGf6670100b7a1: common: Add new function isodate_human_to_tm
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG5d60c7f7e05a: common: Add new function gnupg_gmtime. (authored by Werner Koch <wk@gnupg.org>).Apr 10 2015, 1:09 PM