Linux Time Converter
Convert Unix timestamps to human-readable dates and vice versa
Current Time
Unix Timestamp:
Human Readable:
ISO Format:
Unix Timestamp to Human Date
Human Date to Unix Timestamp
Common Unix Timestamp Examples
- 0 – January 1, 1970 00:00:00 UTC (Unix Epoch)
- 1000000000 – September 9, 2001 01:46:40 UTC
- 1234567890 – February 13, 2009 23:31:30 UTC
- 1640995200 – January 1, 2022 00:00:00 UTC
- 2147483647 – January 19, 2038 03:14:07 UTC (32-bit limit)
What is Unix Time?
Unix time, also known as POSIX time or Epoch time, is a system for describing points in time. It is defined as the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC, not counting leap seconds. This date and time is called the Unix epoch.
Why Use Unix Timestamps?
Unix timestamps are widely used in Linux systems, databases, and programming because they provide a standardized way to represent time that is independent of time zones and locale settings. They are particularly useful for:
- Database storage and indexing
- Log file analysis and system monitoring
- API responses and data exchange
- Scheduling and cron jobs
- File system timestamps
Common Linux Time Commands
In Linux systems, you can work with Unix timestamps using various commands:
date +%s– Get current Unix timestampdate -d @1640995200– Convert Unix timestamp to readable datedate -d "2022-01-01" +%s– Convert date to Unix timestampstat filename– View file timestamps
Precision and Formats
Unix timestamps can be expressed in different units of precision:
- Seconds: Standard Unix timestamp (10 digits)
- Milliseconds: JavaScript timestamp (13 digits)
- Microseconds: High-precision applications (16 digits)
- Nanoseconds: Ultra-high precision (19 digits)