aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
authorMiles Bader2004-07-11 22:08:06 +0000
committerMiles Bader2004-07-11 22:08:06 +0000
commit89f3c0c9fda25756ee311a6d0467a97bac203eb5 (patch)
treebe9d2244f2ba1e7ecd4d680e92e5fdffca58ab03 /src/editfns.c
parent094194de121c8b93c7b183182cb0853ec54fe1aa (diff)
parentda38045d0a9949d46814683391e094a3612b6b41 (diff)
downloademacs-89f3c0c9fda25756ee311a6d0467a97bac203eb5.tar.gz
emacs-89f3c0c9fda25756ee311a6d0467a97bac203eb5.zip
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-23
Merge from emacs--cvs-trunk--0 Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-442 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-444 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-445 Tweak permissions * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-446 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-450 Update from CVS
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c59
1 files changed, 29 insertions, 30 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 9928beff678..2782a966bf0 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1426,10 +1426,10 @@ lisp_time_argument (specified_time, result, usec)
1426DEFUN ("float-time", Ffloat_time, Sfloat_time, 0, 1, 0, 1426DEFUN ("float-time", Ffloat_time, Sfloat_time, 0, 1, 0,
1427 doc: /* Return the current time, as a float number of seconds since the epoch. 1427 doc: /* Return the current time, as a float number of seconds since the epoch.
1428If SPECIFIED-TIME is given, it is the time to convert to float 1428If SPECIFIED-TIME is given, it is the time to convert to float
1429instead of the current time. The argument should have the forms: 1429instead of the current time. The argument should have the form
1430 (HIGH . LOW) or (HIGH LOW USEC) or (HIGH LOW . USEC). 1430(HIGH LOW . IGNORED). Thus, you can use times obtained from
1431Thus, you can use times obtained from `current-time' 1431`current-time' and from `file-attributes'. SPECIFIED-TIME can also
1432and from `file-attributes'. 1432have the form (HIGH . LOW), but this is considered obsolete.
1433 1433
1434WARNING: Since the result is floating point, it may not be exact. 1434WARNING: Since the result is floating point, it may not be exact.
1435Do not use this function if precise time stamps are required. */) 1435Do not use this function if precise time stamps are required. */)
@@ -1501,8 +1501,9 @@ emacs_memftimeu (s, maxsize, format, format_len, tp, ut)
1501 1501
1502DEFUN ("format-time-string", Fformat_time_string, Sformat_time_string, 1, 3, 0, 1502DEFUN ("format-time-string", Fformat_time_string, Sformat_time_string, 1, 3, 0,
1503 doc: /* Use FORMAT-STRING to format the time TIME, or now if omitted. 1503 doc: /* Use FORMAT-STRING to format the time TIME, or now if omitted.
1504TIME is specified as (HIGH LOW . IGNORED) or (HIGH . LOW), as returned by 1504TIME is specified as (HIGH LOW . IGNORED), as returned by
1505`current-time' or `file-attributes'. 1505`current-time' or `file-attributes'. The obsolete form (HIGH . LOW)
1506is also still accepted.
1506The third, optional, argument UNIVERSAL, if non-nil, means describe TIME 1507The third, optional, argument UNIVERSAL, if non-nil, means describe TIME
1507as Universal Time; nil means describe TIME in the local time zone. 1508as Universal Time; nil means describe TIME in the local time zone.
1508The value is a copy of FORMAT-STRING, but with certain constructs replaced 1509The value is a copy of FORMAT-STRING, but with certain constructs replaced
@@ -1598,17 +1599,19 @@ For example, to produce full ISO 8601 format, use "%Y-%m-%dT%T%z". */)
1598 1599
1599DEFUN ("decode-time", Fdecode_time, Sdecode_time, 0, 1, 0, 1600DEFUN ("decode-time", Fdecode_time, Sdecode_time, 0, 1, 0,
1600 doc: /* Decode a time value as (SEC MINUTE HOUR DAY MONTH YEAR DOW DST ZONE). 1601 doc: /* Decode a time value as (SEC MINUTE HOUR DAY MONTH YEAR DOW DST ZONE).
1601The optional SPECIFIED-TIME should be a list of (HIGH LOW . IGNORED) 1602The optional SPECIFIED-TIME should be a list of (HIGH LOW . IGNORED),
1602or (HIGH . LOW), as from `current-time' and `file-attributes', or `nil' 1603as from `current-time' and `file-attributes', or `nil' to use the
1603to use the current time. The list has the following nine members: 1604current time. The obsolete form (HIGH . LOW) is also still accepted.
1604SEC is an integer between 0 and 60; SEC is 60 for a leap second, which 1605The list has the following nine members: SEC is an integer between 0
1605only some operating systems support. MINUTE is an integer between 0 and 59. 1606and 60; SEC is 60 for a leap second, which only some operating systems
1606HOUR is an integer between 0 and 23. DAY is an integer between 1 and 31. 1607support. MINUTE is an integer between 0 and 59. HOUR is an integer
1607MONTH is an integer between 1 and 12. YEAR is an integer indicating the 1608between 0 and 23. DAY is an integer between 1 and 31. MONTH is an
1608four-digit year. DOW is the day of week, an integer between 0 and 6, where 1609integer between 1 and 12. YEAR is an integer indicating the
16090 is Sunday. DST is t if daylight savings time is effect, otherwise nil. 1610four-digit year. DOW is the day of week, an integer between 0 and 6,
1610ZONE is an integer indicating the number of seconds east of Greenwich. 1611where 0 is Sunday. DST is t if daylight savings time is effect,
1611(Note that Common Lisp has different meanings for DOW and ZONE.) */) 1612otherwise nil. ZONE is an integer indicating the number of seconds
1613east of Greenwich. (Note that Common Lisp has different meanings for
1614DOW and ZONE.) */)
1612 (specified_time) 1615 (specified_time)
1613 Lisp_Object specified_time; 1616 Lisp_Object specified_time;
1614{ 1617{
@@ -1740,13 +1743,11 @@ The format is `Sun Sep 16 01:03:52 1973'.
1740However, see also the functions `decode-time' and `format-time-string' 1743However, see also the functions `decode-time' and `format-time-string'
1741which provide a much more powerful and general facility. 1744which provide a much more powerful and general facility.
1742 1745
1743If SPECIFIED-TIME is given, it is a time to format instead 1746If SPECIFIED-TIME is given, it is a time to format instead of the
1744of the current time. The argument should have the form: 1747current time. The argument should have the form (HIGH LOW . IGNORED).
1745 (HIGH . LOW) 1748Thus, you can use times obtained from `current-time' and from
1746or the form: 1749`file-attributes'. SPECIFIED-TIME can also have the form (HIGH . LOW),
1747 (HIGH LOW . IGNORED). 1750but this is considered obsolete. */)
1748Thus, you can use times obtained from `current-time'
1749and from `file-attributes'. */)
1750 (specified_time) 1751 (specified_time)
1751 Lisp_Object specified_time; 1752 Lisp_Object specified_time;
1752{ 1753{
@@ -1797,12 +1798,10 @@ OFFSET is an integer number of seconds ahead of UTC (east of Greenwich).
1797 A negative value means west of Greenwich. 1798 A negative value means west of Greenwich.
1798NAME is a string giving the name of the time zone. 1799NAME is a string giving the name of the time zone.
1799If SPECIFIED-TIME is given, the time zone offset is determined from it 1800If SPECIFIED-TIME is given, the time zone offset is determined from it
1800instead of using the current time. The argument should have the form: 1801instead of using the current time. The argument should have the form
1801 (HIGH . LOW) 1802(HIGH LOW . IGNORED). Thus, you can use times obtained from
1802or the form: 1803`current-time' and from `file-attributes'. SPECIFIED-TIME can also
1803 (HIGH LOW . IGNORED). 1804have the form (HIGH . LOW), but this is considered obsolete.
1804Thus, you can use times obtained from `current-time'
1805and from `file-attributes'.
1806 1805
1807Some operating systems cannot provide all this information to Emacs; 1806Some operating systems cannot provide all this information to Emacs;
1808in this case, `current-time-zone' returns a list containing nil for 1807in this case, `current-time-zone' returns a list containing nil for