On Mon, 6 Mar 2023 20:17:38 +0000
Tim Chase <[email protected]> wrote:

> On 2023-03-06 13:43, Dianne Skoll via Remind-fans wrote:
> > I let Remind (or more precisely, my C library) do the heavy lifting.

> > REM Sun November SATISFY [isdst($T) != isdst($T+1)] MSG Daylight
> > Saving Time Ends REM Sun March SATISFY [isdst($T) != isdst($T+1)]
> > MSG Daylight Saving Time Starts

> That's deviously elegant.  I love it! (and have updated my reminder
> file accordingly)

Nice! :) The following should work for anywhere on Earth that observes
Daylight Saving Time, no matter what the rules are or whether it's the
Northern or Southern hemisphere.  It's way less efficient than the
above:

  REM SATISFY [ isdst($T) && !isdst($T+1)] MSG Daylight Saving Time Ends
  REM SATISFY [!isdst($T) &&  isdst($T+1)] MSG Daylight Saving Time Starts

If your time always changes early on a Sunday morning, then these
variants are far more efficient:

  REM Sun SATISFY [ isdst($T) && !isdst($T+1)] MSG Daylight Saving Time Ends
  REM Sun SATISFY [!isdst($T) &&  isdst($T+1)] MSG Daylight Saving Time Starts

If your location doesn't observe daylight saving time, you'll get a
warning that no trigger date could be computed.

Regards,

Dianne.
_______________________________________________
Remind-fans mailing list
[email protected]
https://dianne.skoll.ca/mailman/listinfo/remind-fans
Remind is at https://dianne.skoll.ca/projects/remind/

Reply via email to