>>> "TP" == Thomas Plass <thu...@arcor.de> writes:
hi 


   > Hello,

I was wondering could that also be done for a week instead of a month

   > (defun Brauer/make-month-timerange (year month)
   >   (interactive
   >    (list (string-to-int (read-string "Year: " (int-to-string (nth 5 
(decode-time)))))
   >          (string-to-int (read-string "Month: " (int-to-string (nth 4 
(decode-time)))))))
   >   (let* ((last-day (calendar-last-day-of-month month year))
   >          (start (list 0 0 0 1 month year))
   >          (end (list 0 0 0 last-day month year))
   >          (ts (format "<%d-%02d-%02d %s>--<%d-%02d-%02d %s>"
   >                      year month 1 (format-time-string "%a" (apply 
#'encode-time start))
   >                      year month last-day (format-time-string "%a" (apply 
#'encode-time end)))))
   >     (message (substitute-command-keys (concat "Use \\[yank] to yank " ts)))
   >     (kill-new ts)))

The problem seems to be that there is no function
calendar-last-day-of-week. I tried to play a little around but it seems 
difficult.

Anyhow

Uwe Brauer 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to