comparison lispref/os.texi @ 51992:8a1df18a9368

(Time Conversion): decode-time arg is optional.
author Richard M. Stallman <rms@gnu.org>
date Tue, 22 Jul 2003 15:17:55 +0000
parents 9fbd3ef3087d
children 8cec82e55147
comparison
equal deleted inserted replaced
51991:7c793b188969 51992:8a1df18a9368
1161 This function converts @var{seconds}, a floating point number of 1161 This function converts @var{seconds}, a floating point number of
1162 seconds since the epoch, to a time value and returns that. To perform 1162 seconds since the epoch, to a time value and returns that. To perform
1163 the inverse conversion, use @code{float-time}. 1163 the inverse conversion, use @code{float-time}.
1164 @end defun 1164 @end defun
1165 1165
1166 @defun decode-time time 1166 @defun decode-time &optional time
1167 This function converts a time value into calendrical information. The 1167 This function converts a time value into calendrical information. If
1168 return value is a list of nine elements, as follows: 1168 you don't specify @var{time}, it decodes the current time. The return
1169 value is a list of nine elements, as follows:
1169 1170
1170 @example 1171 @example
1171 (@var{seconds} @var{minutes} @var{hour} @var{day} @var{month} @var{year} @var{dow} @var{dst} @var{zone}) 1172 (@var{seconds} @var{minutes} @var{hour} @var{day} @var{month} @var{year} @var{dow} @var{dst} @var{zone})
1172 @end example 1173 @end example
1173 1174