diff options
Diffstat (limited to 'lisp/cedet/srecode')
| -rw-r--r-- | lisp/cedet/srecode/args.el | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/lisp/cedet/srecode/args.el b/lisp/cedet/srecode/args.el index b4977f0882e..8c03e17d7b3 100644 --- a/lisp/cedet/srecode/args.el +++ b/lisp/cedet/srecode/args.el | |||
| @@ -101,35 +101,35 @@ do not contain any text from preceding or following text." | |||
| 101 | (defun srecode-semantic-handle-:time (dict) | 101 | (defun srecode-semantic-handle-:time (dict) |
| 102 | "Add macros into the dictionary DICT based on the current :time." | 102 | "Add macros into the dictionary DICT based on the current :time." |
| 103 | ;; DATE Values | 103 | ;; DATE Values |
| 104 | (srecode-dictionary-set-value | 104 | (let ((now (current-time))) |
| 105 | dict "YEAR" (format-time-string "%Y" (current-time))) | 105 | (srecode-dictionary-set-value |
| 106 | (srecode-dictionary-set-value | 106 | dict "YEAR" (format-time-string "%Y" now)) |
| 107 | dict "MONTHNAME" (format-time-string "%B" (current-time))) | 107 | (srecode-dictionary-set-value |
| 108 | (srecode-dictionary-set-value | 108 | dict "MONTHNAME" (format-time-string "%B" now)) |
| 109 | dict "MONTH" (format-time-string "%m" (current-time))) | 109 | (srecode-dictionary-set-value |
| 110 | (srecode-dictionary-set-value | 110 | dict "MONTH" (format-time-string "%m" now)) |
| 111 | dict "DAY" (format-time-string "%d" (current-time))) | 111 | (srecode-dictionary-set-value |
| 112 | (srecode-dictionary-set-value | 112 | dict "DAY" (format-time-string "%d" now)) |
| 113 | dict "WEEKDAY" (format-time-string "%a" (current-time))) | 113 | (srecode-dictionary-set-value |
| 114 | ;; Time Values | 114 | dict "WEEKDAY" (format-time-string "%a" now)) |
| 115 | (srecode-dictionary-set-value | 115 | ;; Time Values |
| 116 | dict "HOUR" (format-time-string "%H" (current-time))) | 116 | (srecode-dictionary-set-value |
| 117 | (srecode-dictionary-set-value | 117 | dict "HOUR" (format-time-string "%H" now)) |
| 118 | dict "HOUR12" (format-time-string "%l" (current-time))) | 118 | (srecode-dictionary-set-value |
| 119 | (srecode-dictionary-set-value | 119 | dict "HOUR12" (format-time-string "%l" now)) |
| 120 | dict "AMPM" (format-time-string "%p" (current-time))) | 120 | (srecode-dictionary-set-value |
| 121 | (srecode-dictionary-set-value | 121 | dict "AMPM" (format-time-string "%p" now)) |
| 122 | dict "MINUTE" (format-time-string "%M" (current-time))) | 122 | (srecode-dictionary-set-value |
| 123 | (srecode-dictionary-set-value | 123 | dict "MINUTE" (format-time-string "%M" now)) |
| 124 | dict "SECOND" (format-time-string "%S" (current-time))) | 124 | (srecode-dictionary-set-value |
| 125 | (srecode-dictionary-set-value | 125 | dict "SECOND" (format-time-string "%S" now)) |
| 126 | dict "TIMEZONE" (format-time-string "%Z" (current-time))) | 126 | (srecode-dictionary-set-value |
| 127 | ;; Convenience pre-packed date/time | 127 | dict "TIMEZONE" (format-time-string "%Z" now)) |
| 128 | (srecode-dictionary-set-value | 128 | ;; Convenience pre-packed date/time |
| 129 | dict "DATE" (format-time-string "%D" (current-time))) | 129 | (srecode-dictionary-set-value |
| 130 | (srecode-dictionary-set-value | 130 | dict "DATE" (format-time-string "%D" now)) |
| 131 | dict "TIME" (format-time-string "%X" (current-time))) | 131 | (srecode-dictionary-set-value |
| 132 | ) | 132 | dict "TIME" (format-time-string "%X" now)))) |
| 133 | 133 | ||
| 134 | ;;; :file ARGUMENT HANDLING | 134 | ;;; :file ARGUMENT HANDLING |
| 135 | ;; | 135 | ;; |