comparison lisp/calendar/cal-persia.el @ 93844:bf9ef749c23e

Replace int-to-string with number-to-string.
author Glenn Morris <rgm@gnu.org>
date Tue, 08 Apr 2008 07:07:17 +0000
parents 3ff2b47de8f2
children e49abd957e81
comparison
equal deleted inserted replaced
93843:61357badb5fa 93844:bf9ef749c23e
150 (calendar-absolute-from-gregorian 150 (calendar-absolute-from-gregorian
151 (or date (calendar-current-date))))) 151 (or date (calendar-current-date)))))
152 (y (calendar-extract-year persian-date)) 152 (y (calendar-extract-year persian-date))
153 (m (calendar-extract-month persian-date)) 153 (m (calendar-extract-month persian-date))
154 (monthname (aref calendar-persian-month-name-array (1- m))) 154 (monthname (aref calendar-persian-month-name-array (1- m)))
155 (day (int-to-string (calendar-extract-day persian-date))) 155 (day (number-to-string (calendar-extract-day persian-date)))
156 (year (int-to-string y)) 156 (year (number-to-string y))
157 (month (int-to-string m)) 157 (month (number-to-string m))
158 dayname) 158 dayname)
159 (mapconcat 'eval calendar-date-display-form ""))) 159 (mapconcat 'eval calendar-date-display-form "")))
160 160
161 ;;;###cal-autoload 161 ;;;###cal-autoload
162 (defun calendar-persian-print-date () 162 (defun calendar-persian-print-date ()
172 "Interactively read the arguments for a Persian date command. 172 "Interactively read the arguments for a Persian date command.
173 Reads a year, month, and day." 173 Reads a year, month, and day."
174 (let* ((year (calendar-read 174 (let* ((year (calendar-read
175 "Persian calendar year (not 0): " 175 "Persian calendar year (not 0): "
176 (lambda (x) (not (zerop x))) 176 (lambda (x) (not (zerop x)))
177 (int-to-string 177 (number-to-string
178 (calendar-extract-year 178 (calendar-extract-year
179 (calendar-persian-from-absolute 179 (calendar-persian-from-absolute
180 (calendar-absolute-from-gregorian 180 (calendar-absolute-from-gregorian
181 (calendar-current-date))))))) 181 (calendar-current-date)))))))
182 (completion-ignore-case t) 182 (completion-ignore-case t)