Dev.to
6/19/2026

Is that timestamp in seconds or milliseconds? I built a zero-dep CLI that just tells you — both directions.
Short summary
Epochlens is a zero-dependency CLI tool that auto-detects timestamp units (seconds, milliseconds, microseconds, or nanoseconds) and converts bidirectionally to ISO 8601 dates. The tool works identically on Node.js and Python by using pure integer arithmetic instead of runtime libraries, avoiding cross-platform bugs like banker's rounding and timezone disagreements. MIT-licensed and available via npm and pip with zero dependencies.
- •Auto-detects timestamp precision and converts between all formats
- •Identical output across Node.js and Python using integer math
- •Zero dependencies; try with npx epochlens or pip install epochlens
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



