Network protocols
NTP / OSC timetag encoder
Encode Unix seconds and microseconds into an era-relative NTP timetag.
Your inputs
Start with an exampleYour result
Example resultAa — A small example of your colors.
How it works
Add 2,208,988,800 seconds to the Unix epoch. Store the seconds modulo 2³², followed by a 32-bit fraction. OSC immediate uses integer value 1.
Unix second 0 encodes as 83 AA 7E 80 00 00 00 00 in NTP era 0.
Limits
Era context is separate from the 64-bit field. Uses Unix-style seconds; leap-second interpretation and clock synchronization are excluded.