Changeset 18164 for lang/commonlisp
- Timestamp:
- 08/24/08 13:30:08 (3 months ago)
- Files:
-
- 1 modified
-
lang/commonlisp/xyzzy-compat/timestamp.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/commonlisp/xyzzy-compat/timestamp.lisp
r17927 r18164 241 241 242 242 (defun parse-date-string (string) 243 ( when (and (stringp string)244 (ppcre:scan *date-format-regexp* string))245 (handler-case246 (apply #'encode-universal-time247 (nreverse248 (map 'list #'parse-integer249 (nth-value 1 (ppcre:scan-to-strings *date-format-regexp* string)))))250 (error () nil))))243 (multiple-value-bind (win parts) 244 (ppcre:scan-to-strings *date-format-regexp* 245 (and (stringp string) string)) 246 (when win 247 (handler-case 248 (apply #'encode-universal-time 249 (nreverse (map 'list #'parse-integer parts))) 250 (error () nil))))) 251 251 252 252 ; usage 253 253 ;(format-date-string (nth 12 *date-formats*) 254 254 ; (get-universal-time)) 255 ;"平成20年8月19日 火曜日" 255 ;=> "平成20年8月19日 火曜日" 256 257 ;(parse-date-string "1999/01/01 17:00:0") 258 ;=> 3124166400
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)