diff options
| author | Miles Bader | 2004-07-11 22:08:06 +0000 |
|---|---|---|
| committer | Miles Bader | 2004-07-11 22:08:06 +0000 |
| commit | 89f3c0c9fda25756ee311a6d0467a97bac203eb5 (patch) | |
| tree | be9d2244f2ba1e7ecd4d680e92e5fdffca58ab03 /src/editfns.c | |
| parent | 094194de121c8b93c7b183182cb0853ec54fe1aa (diff) | |
| parent | da38045d0a9949d46814683391e094a3612b6b41 (diff) | |
| download | emacs-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.c | 59 |
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) | |||
| 1426 | DEFUN ("float-time", Ffloat_time, Sfloat_time, 0, 1, 0, | 1426 | DEFUN ("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. |
| 1428 | If SPECIFIED-TIME is given, it is the time to convert to float | 1428 | If SPECIFIED-TIME is given, it is the time to convert to float |
| 1429 | instead of the current time. The argument should have the forms: | 1429 | instead 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 |
| 1431 | Thus, you can use times obtained from `current-time' | 1431 | `current-time' and from `file-attributes'. SPECIFIED-TIME can also |
| 1432 | and from `file-attributes'. | 1432 | have the form (HIGH . LOW), but this is considered obsolete. |
| 1433 | 1433 | ||
| 1434 | WARNING: Since the result is floating point, it may not be exact. | 1434 | WARNING: Since the result is floating point, it may not be exact. |
| 1435 | Do not use this function if precise time stamps are required. */) | 1435 | Do 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 | ||
| 1502 | DEFUN ("format-time-string", Fformat_time_string, Sformat_time_string, 1, 3, 0, | 1502 | DEFUN ("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. |
| 1504 | TIME is specified as (HIGH LOW . IGNORED) or (HIGH . LOW), as returned by | 1504 | TIME 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) |
| 1506 | is also still accepted. | ||
| 1506 | The third, optional, argument UNIVERSAL, if non-nil, means describe TIME | 1507 | The third, optional, argument UNIVERSAL, if non-nil, means describe TIME |
| 1507 | as Universal Time; nil means describe TIME in the local time zone. | 1508 | as Universal Time; nil means describe TIME in the local time zone. |
| 1508 | The value is a copy of FORMAT-STRING, but with certain constructs replaced | 1509 | The 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 | ||
| 1599 | DEFUN ("decode-time", Fdecode_time, Sdecode_time, 0, 1, 0, | 1600 | DEFUN ("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). |
| 1601 | The optional SPECIFIED-TIME should be a list of (HIGH LOW . IGNORED) | 1602 | The optional SPECIFIED-TIME should be a list of (HIGH LOW . IGNORED), |
| 1602 | or (HIGH . LOW), as from `current-time' and `file-attributes', or `nil' | 1603 | as from `current-time' and `file-attributes', or `nil' to use the |
| 1603 | to use the current time. The list has the following nine members: | 1604 | current time. The obsolete form (HIGH . LOW) is also still accepted. |
| 1604 | SEC is an integer between 0 and 60; SEC is 60 for a leap second, which | 1605 | The list has the following nine members: SEC is an integer between 0 |
| 1605 | only some operating systems support. MINUTE is an integer between 0 and 59. | 1606 | and 60; SEC is 60 for a leap second, which only some operating systems |
| 1606 | HOUR is an integer between 0 and 23. DAY is an integer between 1 and 31. | 1607 | support. MINUTE is an integer between 0 and 59. HOUR is an integer |
| 1607 | MONTH is an integer between 1 and 12. YEAR is an integer indicating the | 1608 | between 0 and 23. DAY is an integer between 1 and 31. MONTH is an |
| 1608 | four-digit year. DOW is the day of week, an integer between 0 and 6, where | 1609 | integer between 1 and 12. YEAR is an integer indicating the |
| 1609 | 0 is Sunday. DST is t if daylight savings time is effect, otherwise nil. | 1610 | four-digit year. DOW is the day of week, an integer between 0 and 6, |
| 1610 | ZONE is an integer indicating the number of seconds east of Greenwich. | 1611 | where 0 is Sunday. DST is t if daylight savings time is effect, |
| 1611 | (Note that Common Lisp has different meanings for DOW and ZONE.) */) | 1612 | otherwise nil. ZONE is an integer indicating the number of seconds |
| 1613 | east of Greenwich. (Note that Common Lisp has different meanings for | ||
| 1614 | DOW 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'. | |||
| 1740 | However, see also the functions `decode-time' and `format-time-string' | 1743 | However, see also the functions `decode-time' and `format-time-string' |
| 1741 | which provide a much more powerful and general facility. | 1744 | which provide a much more powerful and general facility. |
| 1742 | 1745 | ||
| 1743 | If SPECIFIED-TIME is given, it is a time to format instead | 1746 | If SPECIFIED-TIME is given, it is a time to format instead of the |
| 1744 | of the current time. The argument should have the form: | 1747 | current time. The argument should have the form (HIGH LOW . IGNORED). |
| 1745 | (HIGH . LOW) | 1748 | Thus, you can use times obtained from `current-time' and from |
| 1746 | or the form: | 1749 | `file-attributes'. SPECIFIED-TIME can also have the form (HIGH . LOW), |
| 1747 | (HIGH LOW . IGNORED). | 1750 | but this is considered obsolete. */) |
| 1748 | Thus, you can use times obtained from `current-time' | ||
| 1749 | and 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. |
| 1798 | NAME is a string giving the name of the time zone. | 1799 | NAME is a string giving the name of the time zone. |
| 1799 | If SPECIFIED-TIME is given, the time zone offset is determined from it | 1800 | If SPECIFIED-TIME is given, the time zone offset is determined from it |
| 1800 | instead of using the current time. The argument should have the form: | 1801 | instead 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 |
| 1802 | or the form: | 1803 | `current-time' and from `file-attributes'. SPECIFIED-TIME can also |
| 1803 | (HIGH LOW . IGNORED). | 1804 | have the form (HIGH . LOW), but this is considered obsolete. |
| 1804 | Thus, you can use times obtained from `current-time' | ||
| 1805 | and from `file-attributes'. | ||
| 1806 | 1805 | ||
| 1807 | Some operating systems cannot provide all this information to Emacs; | 1806 | Some operating systems cannot provide all this information to Emacs; |
| 1808 | in this case, `current-time-zone' returns a list containing nil for | 1807 | in this case, `current-time-zone' returns a list containing nil for |