summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-08-25 06:02:00 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-08-25 06:02:00 -0700
commitf45adf7b8cd017332c863064d182a141e315979b (patch)
tree21a7bdcf7485b9ab8bbafe65078b503191929d83 /eval.c
parenteba82ca4bb9efc87aaa84c6f358f2cde6c15e070 (diff)
downloadtxr-f45adf7b8cd017332c863064d182a141e315979b.tar.gz
txr-f45adf7b8cd017332c863064d182a141e315979b.tar.bz2
txr-f45adf7b8cd017332c863064d182a141e315979b.zip
Adding time-parse method.
* lib.c (time_parse_s): New symbol variable. (tm_to_time_struct): New static function, based on code moved out of broken_time_struct. (broken_time_struct): Bulk of code replaced with call to tm_to_time_struct. (time_struct_to_tm): New parameter, strict. Indicates whether nils in time struct are converted to zeros, or whether they trigger errors. (time_string_meth): Specify strict conversion of argument time struct to to struct tm when calling time_struct_to_tm. (time_parse_meth): New static function. (time_init): Initialize time_parse_s symbol variable; add time-parse static slot to time struct; initialize slot with new method. * txr.1: Document time-parse method.
Diffstat (limited to 'eval.c')
0 files changed, 0 insertions, 0 deletions