diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2013-11-29 06:15:05 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2013-11-29 06:15:05 -0800 |
commit | 5cdd2fd5ff14c113b867df969779c75fca79932e (patch) | |
tree | 65ec24eb1a32105a182837804e532184b7278d3e /txr.1 | |
parent | b730e5dce382923990bc4ad76b90da8b9f73100f (diff) | |
download | txr-5cdd2fd5ff14c113b867df969779c75fca79932e.tar.gz txr-5cdd2fd5ff14c113b867df969779c75fca79932e.tar.bz2 txr-5cdd2fd5ff14c113b867df969779c75fca79932e.zip |
* configure (config_flags): New variable, allowing us to
have stricter diagnosis for configure tests.
(have_timegm, need_svid_source, need_bsd_source): New
variables. sys/stat.h test only declares static data and
compiles an object file. Adding tests for timegm, tzset,
setenv and unsetenv.
* eval.c (eval_init): Register new intrinsic, make_time_utc.
* lib.c (make_time_impl): New static function.
(make_time): Reimplemented as call to make_time_impl.
(timegm_hack): New conditionally-defined static function.
(make_time_utc): New function.
* lib.h (make_time_utc): Declared.
* txr.1: make-time-utc documented.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,4 +1,4 @@ -.\"Copyright (C) 2011, Kaz Kylheku <kaz@kylheku.com>. +.\"Copyright (C) 20114 Kaz Kylheku <kaz@kylheku.com>. .\"All rights reserved. .\" .\"BSD License: @@ -10775,12 +10775,13 @@ 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 Function make-time +.SS Functions make-time and make-time-utc .TP Syntax: (make-time <year> <month> <day> <hour> <minute> <second> <dst-advice>) + (make-time-utc <year> <month> <day> <hour> <minute> <second> <dst-advice>) .TP Description @@ -10800,6 +10801,13 @@ If the argument is nil, then the time is assumed not to be in DST. If <dst-advice> is :auto, then the function tries to determine whether DST is in effect in the current time zone for the specified date and time. +The make-time-utc function is similar to make-time, except that +it treats the time as UTC rather than in the local time zone. +The <dst-advice> argument is supported by make-time-utc for function +call compatibility with make-time. It may or may not have any effect +on the output (since the UTC zone by definition doesn't have daylight +savings time). + .SH UNIX PROGRAMMING .SS Functions errno and set-errno |