I compressed various timestamps into just 3 bytes (24 bits) for low-bandwidth IoT radio transmissions.
If you can tolerate a small error margin (e.g., ~1 second), you can encode multiple years of timestamps from a given epoch. This is ideal for embedded systems, LoRa, or sensor networks where transmission size matters.
I wrote a lightweight library called 3bTime that allows you to choose between different profiles depending on your application's needs — whether you're optimizing for precision or long-term range.
📦 Example:
10-year range → ±9 seconds error
193-day range → perfect second-level accuracy
Configurable, efficient, and designed for constrained environments.
GitHub: https://github.com/w0da/3bTime