Home GnuPG
Diffusion GnuPG f6670100b7a1

common: Add new function isodate_human_to_tm
f6670100b7a1Unpublished

Unpublished Commit · Learn More

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

Description

common: Add new function isodate_human_to_tm

* 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.

Details

Provenance
wernerAuthored on Apr 10 2015, 12:02 PM
Parents
rG6ad95fe6f1f1: dirmngr,w32: Avoid name clash with existing function
Branches
Unknown
Tags
Unknown

Event Timeline

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