emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: calendar gets wrong end for Daylight Savings Time


From: Eli Zaretskii
Subject: Re: calendar gets wrong end for Daylight Savings Time
Date: Thu, 09 Nov 2006 21:32:10 +0200

> From: Glenn Morris <address@hidden>
> Cc: address@hidden (Kim F. Storm),  address@hidden,  address@hidden,  
> address@hidden
> Date: Thu, 09 Nov 2006 03:46:51 -0500
> 
> Am I totally missing the point here? The question to be answered is:
> what day of the year does Daylight Saving Time start/end? This is so
> it can be printed as a diary/holiday entry, eg so people know when to
> change their clocks. How do I do find that date in your method?

In C, you pass probe time_t values to the function localtime, until
you find the value for which the tm_isdst flag in the struct tm
returned by localtime changes from 0 to 1 or vice versa.

In Lisp, we will need some Lisp binding to localtime or its sibling
functions, to do the same.  Perhaps the iterative solution can be
coded in C, with only the result exposed to Lisp.

Does this make sense?  Apologies if I'm missing something.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]