diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2016-04-02 23:43:44 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2016-04-02 23:44:18 -0700 |
commit | b787d5501bad8036016d835faa2f90bb0904c038 (patch) | |
tree | 1bc1ab283f0ef8cf95a16afbbb71a682fbf5d180 /lisp/org/org.el | |
parent | 13c8f29ce361e3aad71cf2b44e76d5cfdaf7dda3 (diff) | |
download | emacs-b787d5501bad8036016d835faa2f90bb0904c038.tar.gz |
More format-time-string change fixups
* lisp/net/tramp-sh.el (tramp-sh-handle-set-file-times):
* lisp/org/org.el (org-timestamp-format):
Fix doc to match new format-time-string behavior.
* lisp/org/ox-icalendar.el (org-icalendar-convert-timestamp):
Use (not (not X)) to treat non-nil values of utc arg as UTC.
Diffstat (limited to 'lisp/org/org.el')
-rw-r--r-- | lisp/org/org.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/org/org.el b/lisp/org/org.el index 6e7d54d39c0..d2b48a64e45 100644 --- a/lisp/org/org.el +++ b/lisp/org/org.el @@ -22663,7 +22663,7 @@ contains commented lines. Otherwise, comment them." "Non-nil when TIMESTAMP has a time specified." (org-element-property :hour-start timestamp)) -(defun org-timestamp-format (timestamp format &optional end utc) +(defun org-timestamp-format (timestamp format &optional end zone) "Format a TIMESTAMP element into a string. FORMAT is a format specifier to be passed to @@ -22672,8 +22672,9 @@ FORMAT is a format specifier to be passed to When optional argument END is non-nil, use end of date-range or time-range, if possible. -When optional argument UTC is non-nil, time will be expressed as -Universal Time." +The optional ZONE is omitted or nil for Emacs local time, t for +Universal Time, `wall' for system wall clock time, or a string as in +`set-time-zone-rule' for a time zone rule." (format-time-string format (apply 'encode-time @@ -22683,7 +22684,7 @@ Universal Time." (if end '(:minute-end :hour-end :day-end :month-end :year-end) '(:minute-start :hour-start :day-start :month-start :year-start))))) - utc)) + zone)) (defun org-timestamp-split-range (timestamp &optional end) "Extract a timestamp object from a date or time range. |