Mercurial > emacs
comparison lispref/os.texi @ 15778:c96cee4f8be8
Explain range of time values, and what negative year numbers mean.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 24 Jul 1996 03:43:56 +0000 |
parents | 9305e83c313d |
children | 7867bb9ff46a |
comparison
equal
deleted
inserted
replaced
15777:d6eb0b865cd2 | 15778:c96cee4f8be8 |
---|---|
904 These functions convert time values (lists of two or three integers) | 904 These functions convert time values (lists of two or three integers) |
905 to strings or to calendrical information. There is also a function to | 905 to strings or to calendrical information. There is also a function to |
906 convert calendrical information to a time value. You can get time | 906 convert calendrical information to a time value. You can get time |
907 values from the functions @code{current-time} (@pxref{Time of Day}) and | 907 values from the functions @code{current-time} (@pxref{Time of Day}) and |
908 @code{file-attributes} (@pxref{File Attributes}). | 908 @code{file-attributes} (@pxref{File Attributes}). |
909 | |
910 Many operating systems are limited to time values that contain 32 bits | |
911 of information; these systems typically handle only the times from | |
912 1901-12-13 20:45:52 UTC through 2038-01-19 03:14:07 UTC. However, some | |
913 operating systems have larger time values, and can represent times far | |
914 in the past or future. | |
915 | |
916 Time conversion functions always use the Gregorian calendar, even for | |
917 dates before the Gregorian calendar was introduced. Year numbers count | |
918 the number of years since the year 1 B.C., and do not skip zero as | |
919 traditional Gregorian years do; for example, the year number -37 | |
920 represents the Gregorian year 38 B.C@. | |
909 | 921 |
910 @defun format-time-string format-string time | 922 @defun format-time-string format-string time |
911 This function converts @var{time} to a string according to | 923 This function converts @var{time} to a string according to |
912 @var{format-string}. The argument @var{format-string} may contain | 924 @var{format-string}. The argument @var{format-string} may contain |
913 @samp{%}-sequences which say to substitute parts of the time. Here is a | 925 @samp{%}-sequences which say to substitute parts of the time. Here is a |