diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-01-20 23:40:39 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-01-20 23:40:39 -0800 |
commit | b9b4014c02f36f5b468283ed6ef64783146306cf (patch) | |
tree | 3b5054d4a63e9014981c079ef52f2bb776b41885 /txr.1 | |
parent | da6ce99db9ac21b417262f5d23e605aee391b70e (diff) | |
download | txr-b9b4014c02f36f5b468283ed6ef64783146306cf.tar.gz txr-b9b4014c02f36f5b468283ed6ef64783146306cf.tar.bz2 txr-b9b4014c02f36f5b468283ed6ef64783146306cf.zip |
* lib.c (broken_down_time_list): New static function.
(time_fields_local, time_fields_utc): New functions.
* lib.h (time_fields_local, time_fields_utc): Declared.
* eval.c (eval_init): Intern time_fields_local and time_fields_utc
as intrinsic functions.
* txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -11212,6 +11212,31 @@ the format string of the C library function strftime. The <time> argument is an integer representing seconds obtained from the time function or from the time-usec function. +.SS Functions time-fields-local and time-fields-utc + +.TP +Syntax: + + (time-fields-local <time>) + (time-fields-utc <time>) + +.TP +Description: + +These functions take the numeric time returned by the time function, +and convert it to a list of seven fields. + +The time-string-local function converts the time to the local timezone of +the host system. The time-string-utc function produces time in UTC. + +The fields returned as a list are six integers, and a boolean value. +The six integers represent the year, month, day, hour, minute and second. +The boolean value indicates whether daylight savings time is in effect +(always nil in the case of time-fields-utc). + +The <time> argument is an integer representing seconds obtained from the +time function or from the time-usec function. + .SS Functions make-time and make-time-utc .TP |