devkits-timestamp
v1.0.0
Published
Convert Unix timestamps to human-readable dates and vice versa
Maintainers
Readme
devkits-timestamp
Convert Unix timestamps to human-readable dates and vice versa
Installation
npm install -g devkits-timestampOr use without installation:
npx devkits-timestamp [args]Usage
# Get current timestamp
dk-timestamp # 1704067200
# Convert timestamp to date
dk-timestamp 1704067200 # Full date info (JSON)
dk-timestamp 1704067200 -f iso # 2024-01-01T00:00:00.000Z
dk-timestamp 1704067200 -f utc # Mon, 01 Jan 2024 00:00:00 GMT
dk-timestamp 1704067200 -f date # 1/1/2024
dk-timestamp 1704067200 -f time # 12:00:00 AM
# Convert date to timestamp
dk-timestamp -d "2024-01-01" # 1704067200
dk-timestamp -d "Jan 1, 2024" # 1704067200
dk-timestamp -d "2024-01-01 12:00:00" # 1704110400
# Date to timestamp with format
dk-timestamp -d "2024-01-01" -f iso # 2024-01-01T00:00:00.000ZWhy @devkits/timestamp?
- ✅ Fast - Instant conversion
- ✅ Zero dependencies - Pure Node.js
- ✅ Offline - Works without internet
- ✅ Free - Open source (MIT)
- ✅ CLI - Use in your terminal
- ✅ Multiple output formats
Output Formats
iso- ISO 8601 format (2024-01-01T00:00:00.000Z)utc- UTC string (Mon, 01 Jan 2024 00:00:00 GMT)local- Local timezone stringdate- Date only (1/1/2024)time- Time only (12:00:00 AM)
Web Version
Prefer a GUI? Check out the web version: https://devkits-tools.surge.sh/tools/timestamp
- 84 developer tools in one PWA
- Works offline
- No signup required
Pro Features
Upgrade to Pro for advanced features:
- 📦 Batch Processing
- 🔗 API Access (1000 req/day free)
- ☁️ Cloud Sync
- 🎨 Custom Themes
- 📊 Advanced Analytics
- 💬 Priority Support
Price: $9 one-time payment
Upgrade: https://devkits-tools.surge.sh/pro
Discount: Use code EARLYBIRD-2026 for 20% off
See Also
Part of the DevKits Tools collection — 80+ free developer tools:
Popular Tools
| Tool | npm Package | Description |
|------|-------------|-------------|
| Base64 | @devkits/base64 | Encode/decode Base64 |
| JSON Formatter | @devkits/json-formatter | Format and validate JSON |
| Color Converter | @devkits/color-converter | HEX/RGB/HSL conversion |
| UUID Generator | @devkits/uuid-generator | Generate unique UUIDs |
| Hash Generator | @devkits/hash-generator | MD5, SHA1, SHA256, SHA512 |
| Regex Tester | @devkits/regex-tester | Test regex patterns |
Other DevKits Tools
- HTML Tools — HTML entity encode/decode
- CSS Tools — CSS minify/format
- Cron Parser — Parse cron expressions
- Case Convert — camelCase, snake_case, etc.
- Slugify — Create URL-friendly slugs
- Lorem Ipsum — Generate placeholder text
- Password Generator — Secure passwords
- Text Counter — Word/char counter
More from DevKits
- Invoicely — Free invoice generator for freelancers
- SnapOG — Free OG image generator with 20+ templates
- API Monitor — Real-time API monitoring
👉 Explore all 80+ developer tools at DevKits Tools
License
MIT © DevKits Team
🚀 API Monitoring for Developers
Build better APIs with API Monitor SaaS — real-time monitoring, alerting, and analytics.
👉 Early Access: $1 pre-order (50% off for life) → https://api-monitor-saas.surge.sh?utm_source=npm&utm_medium=readme&utm_campaign=phase0
