Straight up code from my repository.
- Calculate Leap year.
- Calculated time from Epoch.
- Correct for time for leap seconds in the past only.
- Best way to parse data in large data packets 300+ bits.
- Data whitening
- weighted and exponential moving average.
- day or night?
- How to keep time in the background with near zero drift (+/- 15 seconds/month).
- Finite state machine including time as input. (much trickier than you would ever want to deal with, sadly I did.)
- From Lat/Long + Date calculate sunrise, sunset, with varying flexibility of what the definition of sunrise and sunset is defined as.
- DSP straight up, load sharing (might have lost this code)