Archive formats
ZIP DOS timestamp encoder
Encode calendar components into ZIP’s two-byte time and date fields.
Your inputs
Start with an exampleYour result
Example resultAa — A small example of your colors.
How it works
Pack date and time bit fields. Seconds have two-second resolution and round down. Output stores the time word then date word, both little-endian.
1980-01-01 00:00:00 encodes as 00 00 21 00.
Limits
DOS fields contain no timezone. This does not convert UTC/local time or parse extended timestamp fields.