diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-08-31 08:35:23 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-08-31 08:35:23 -0700 |
commit | 4f5154e6e22f133edf3a43b61eb44e789c425c45 (patch) | |
tree | c47eeada15d9c8ebe7af6f811bfe5ed11a1dc57a /lib.h | |
parent | 7660334154c96f46c4051403fce18f3828e852ed (diff) | |
download | txr-4f5154e6e22f133edf3a43b61eb44e789c425c45.tar.gz txr-4f5154e6e22f133edf3a43b61eb44e789c425c45.tar.bz2 txr-4f5154e6e22f133edf3a43b61eb44e789c425c45.zip |
Time structure.
* eval.c (eval_init): Register time-struct-local and time-struct-utc
intrinsic funtions.
* lib.c (time_s, year_s, month_s, day_s, hour_s, min_s, sec_s):
New global symbol variables.
(broken_time_struct, time_init): New static functions.
(time_struct_local, time_struct_utc): New functions.
(init): Call time_init.
* lib.h (time_struct_local, time_struct_utc): Declared.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -893,6 +893,8 @@ val time_string_local(val time, val format); val time_string_utc(val time, val format); val time_fields_local(val time); val time_fields_utc(val time); +val time_struct_local(val time); +val time_struct_utc(val time); val make_time(val year, val month, val day, val hour, val minute, val second, val isdst); |