Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: AlphaDec, a readable, lexically sortable time format for humans and AI (github.com/firasd)
1 point by firasd 3 months ago | hide | past | favorite
I designed AlphaDec, a timezone-agnostic time format that encodes UTC timestamps into chronologically sortable strings like `2025_O2H5_389232`.

The key insight: by dividing the year into 26 periods (A-Z), then subdividing with numbers and letters, you get timestamps that sort naturally as strings while remaining human-readable.

Some practical benefits I've found:

- Perfect as prefixes for database keys

- Time-range queries by truncation (`2024_M` finds everything in that ~14-day period)

- LLM-friendly for log analysis and time-based reasoning

- Glanceable - you can quickly see where in the year a timestamp falls

Interesting emergent property: Periods F, M, S, and Z always bracket equinoxes/solstices, even in leap years.

Live clock: https://firasd.github.io/alphadec/ GitHub: https://github.com/firasd/alphadec

The readme has implementations in JavaScript and PHP. Would love feedback on the concept and where else this might be useful!



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: