summaryrefslogtreecommitdiffstats
path: root/struct.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-08-22 21:08:14 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-08-22 21:08:14 -0700
commit314b4d350cb44557fa4e90b93b489ea9611a1241 (patch)
tree77b4022afa0c2c8eaf37504e46221a4b6c957cf4 /struct.c
parent89a9a4f613a6b4f1bccddec6f01c3af317398132 (diff)
downloadtxr-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