diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2013-05-15 20:46:35 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2013-05-15 20:46:35 -0700 |
commit | b4efd6c6dc386de5ff9ce9f2c3fba251c34a232b (patch) | |
tree | f809d027234c315c17cf86ab84027b9bdf52f170 /eval.c | |
parent | 10bbad5126477bbf9e46a37d4c323f87f8273dbb (diff) | |
download | txr-b4efd6c6dc386de5ff9ce9f2c3fba251c34a232b.tar.gz txr-b4efd6c6dc386de5ff9ce9f2c3fba251c34a232b.tar.bz2 txr-b4efd6c6dc386de5ff9ce9f2c3fba251c34a232b.zip |
* eval.c (eval_init): New intrinsics, time-string-local and
time-string-utc.
* lib.c (string_time): New static function.
(time_string_local, time_string_utc): New functions.
* lib.h (time_string_local, time_string_utc): Declared.
* txr.1: Documented.
* RELNOTES: Updated.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2467,6 +2467,8 @@ void eval_init(void) reg_fun(intern(lit("time"), user_package), func_n0(time_sec)); reg_fun(intern(lit("time-usec"), user_package), func_n0(time_sec_usec)); + reg_fun(intern(lit("time-string-local"), user_package), func_n2(time_string_local)); + reg_fun(intern(lit("time-string-utc"), user_package), func_n2(time_string_utc)); reg_fun(intern(lit("source-loc"), user_package), func_n1(source_loc)); reg_fun(intern(lit("source-loc-str"), user_package), func_n1(source_loc_str)); |