How to use the Timestamp Converter
- Paste a timestamp or pick a date and time.
- Choose a timezone.
- Copy the format you need.
Features
- Live current epoch in seconds and milliseconds
- Auto-detects seconds, milliseconds, microseconds
- Any IANA timezone, ISO 8601 and RFC 2822 output
- Relative time (e.g. '3 hours ago')
- Dart, JavaScript and Python snippets
Frequently asked questions
Is a Unix timestamp in seconds or milliseconds?
Unix time is defined in seconds, but JavaScript and Dart (millisecondsSinceEpoch) commonly use milliseconds. A 13-digit number is almost always milliseconds.
How do I get the current timestamp in Dart?
DateTime.now().millisecondsSinceEpoch for milliseconds, or divide by 1000 (~/ 1000) for seconds.