Changeset 18703 for lang/commonlisp
- Timestamp:
- 09/03/08 10:09:43 (4 months ago)
- Files:
-
- 1 modified
-
lang/commonlisp/xyzzy-compat/timestamp.lisp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/commonlisp/xyzzy-compat/timestamp.lisp
r18164 r18703 59 59 (in-package :xyzzy) 60 60 61 (defconstant +abbreviated-weekday-names+ 61 (defmacro defconstant* (sym value &optional doc) 62 `(defconstant ,sym (if (boundp ',sym) 63 (symbol-value ',sym) 64 ,value) 65 ,@(when doc (list doc)))) 66 67 (defconstant* +abbreviated-weekday-names+ 62 68 #("Mon" "Tue" "Wed" "Thu" "Fri" "Sat" "Sun")) 63 69 64 (defconstant +full-weekday-names+70 (defconstant* +full-weekday-names+ 65 71 #("Monday" "Tuesday" "Wednesday" "Thursday" "Friday" "Saturday" "Sunday")) 66 72 67 (defconstant +japanese-weekday-names+ "月火水木金土日")68 69 (defconstant +abbreviated-month-names+73 (defconstant* +japanese-weekday-names+ "月火水木金土日") 74 75 (defconstant* +abbreviated-month-names+ 70 76 #("Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec")) 71 77 72 (defconstant +full-month-names+78 (defconstant* +full-month-names+ 73 79 #("January" "February" "March" "April" "May" "June" 74 80 "July" "August" "September" "October" "November" "December")) … … 77 83 78 84 ;; 元号と西暦の対応表(たぶん合ってる) 79 (defconstant +japanese-era-list+85 (defconstant* +japanese-era-list+ 80 86 '(("平成" "H" 1989 1 8) 81 87 ("昭和" "S" 1926 12 25) … … 85 91 )) 86 92 87 (defconstant +japanese-era+93 (defconstant* +japanese-era+ 88 94 (mapcar #'(lambda (x) 89 95 (list (encode-universal-time
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)