diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-08-22 20:32:21 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-08-22 20:32:21 -0700 |
commit | 2ac1a60fa62041345bc461edb3e7d0d74a0055cd (patch) | |
tree | ba7f09cbec594b076d7541229032b606d26a76fd /lib.h | |
parent | 2037ff7663e563e9f2497861b6151a6d5173c67b (diff) | |
download | txr-2ac1a60fa62041345bc461edb3e7d0d74a0055cd.tar.gz txr-2ac1a60fa62041345bc461edb3e7d0d74a0055cd.tar.bz2 txr-2ac1a60fa62041345bc461edb3e7d0d74a0055cd.zip |
Adding time-parse function: wrapper for strptime.
* configure: Test for strptime.
* eval.c (eval_init): register time-parse intrinsic.
* lib.c (time_parse): New function.
* lib.h (time_parse): Declared.
* txr.1: Documented.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -992,6 +992,9 @@ val make_time(val year, val month, val day, val make_time_utc(val year, val month, val day, val hour, val minute, val second, val isdst); +#if HAVE_STRPTIME +val time_parse(val format, val string); +#endif void init(mem_t *(*oom_realloc)(mem_t *, size_t), val *stack_bottom); int compat_fixup(int compat_ver); |