DCF77 time signal decoder

This is a part of my DCF77 decoder, check it out for more info.

Input

0-00010100101001-00010-1-1100100-1-100000-1-0100100011000100000100-0-0
| |------------/ |:|:| | |-----/ | |----/ | |--------------------/ | |
| |              |:|:| | |       | |      | |                      | minute mark (always 0)
| |              |:|:| | |       | |      | |                      parity for prev. section
| |              |:|:| | |       | |      | ddddDDwwwmmmmMyyyyYYYY
| |              |:|:| | |       | |      parity for hours
| |              |:|:| | |       | hours
| |              |:|:| | |       parity for minutes
| |              |:|:| | minutes
| |              |:|:| minute start bit (always 1)
| |              |:|:leap second announcement
| |              |:|CET
| |              |:CEST
| |              |summer time announcement
| |              call bit
| civil warning bits and weather information
start of minute (always 0)

Output


		

More info

Specification on Wikipedia: DCF77.