diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-08-22 21:08:14 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-08-22 21:08:14 -0700 |
commit | 314b4d350cb44557fa4e90b93b489ea9611a1241 (patch) | |
tree | 77b4022afa0c2c8eaf37504e46221a4b6c957cf4 /struct.c | |
parent | 89a9a4f613a6b4f1bccddec6f01c3af317398132 (diff) | |
download | txr-314b4d350cb44557fa4e90b93b489ea9611a1241.tar.gz txr-314b4d350cb44557fa4e90b93b489ea9611a1241.tar.bz2 txr-314b4d350cb44557fa4e90b93b489ea9611a1241.zip |
New time-string method on time struct.
* lib.c (time_string_s): New symbol variable.
(time_fields_to_tm, time_struct_to_tm): New static functions.
(make_time_impl): Replace bunch of code with call to
time_fields_to_tm.
(time_string_meth): New static function.
(time_init): Initialize time_string_s. Add time-string
static slot to time struct. Register time-string
method.
* txr.1: Documented.
Diffstat (limited to 'struct.c')
0 files changed, 0 insertions, 0 deletions