Closed icb- closed 3 years ago
Note that I only did this for WWVB. Some of the other sources have similar bits.
MSF:
Bit 58B indicates the broadcast time is summer time. Bit 53B gives warning that the summer time bit is about to change. It is set for 61 consecutive minutes, starting 1 hour 7 seconds before the change, and ending 7 seconds before the change, 5 seconds before the first changed bit 58B, which is itself transmitted 2 seconds (1.7–1.8 seconds, to be more precise) before the moment of the time change.
JJY: Not used
DCF77: Bit 16 is set the hour before the change in either direction.
Thanks, merged. Looks good, but I can't test it with an actual clock. Maybe @t11s can comment if it now works for them.
I've done minimal testing that this correctly sets the DST bits for the WWVB signal. You should test more before merging. Timezone math always confuses me.
These are the relevant bits for the day DST starts and ends, and one day on each side, before and after this change.
Starting DST:
Ending DST:
Fixes hzeller/txtempus#14