Hello,
Thanks for your reply. I made the assignments in my init.el
file, as follows:

(load "utilvilf")  ; frame parameters, font
(load "cal-dst") ; I noticed that cal-dst was not initially loaded

(setq calendar-daylight-savings-starts '(bv-calendar-dst-starts year))
(setq calendar-daylight-savings-ends '(bv-calendar-dst-ends year))
(setq calendar-daylight-time-offset 60)
(setq calendar-daylight-savings-starts-time 180)
(setq calendar-daylight-savings-ends-time 180)

The two functions, bv-calendar-dst-starts and
bv-calendar-dst-ends are defined in utilvilf (see above)
as follows:



(defun bv-calendar-dst-starts (year) "Daylight Savings Start"
  (calendar-nth-named-day -1 0 3 year)
)

(defun bv-calendar-dst-ends (year) "Daylight Savings End"
  (calendar-nth-named-day -1 0 10 year)
)


when I tested the two functions, they give the correct
answer for the year 2013: (3 31 2013) and (10 27 2013)

Regards,
Bostjan


Reply via email to