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 /txr.1 | |
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 'txr.1')
-rw-r--r-- | txr.1 | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -36516,6 +36516,34 @@ function or from the .code time-usec function. +.coNP Function @ time-parse +.synb +.mets (time-parse < format << string ) +.syne +.desc +The +.code time-parse +function scans a time description in +.meta string +according to the specification given in the +.meta format +string. If the scan is successful, a structure +of type +.code time +is returned, otherwise +.codn nil . + +The +.meta format +argument follows the same conventions as the POSIX +C library function +.codn strptime . + +Note: the availability of +.code time-parse +depends on the availability of +.codn strptime . + .coNP Methods @ time-local and @ time-utc .synb .mets << time-struct .(time-local) |