Epoch & Unix Timestamp Conversion Tool

Welcome to ToolsMini’s Epoch & Unix Timestamp Conversion Tool. Easily convert between Unix timestamps and human-readable dates. Whether you’re a developer, system administrator, or simply curious about Unix time, our tool provides quick and accurate conversions.

Live Epoch Time:
Live Local Time:




What is Epoch & Unix Time?

Epoch time, also known as Unix time, is a system for tracking time by counting the number of seconds that have passed since January 1, 1970 (UTC). It’s commonly used in programming and software development. Our tool allows you to convert these timestamps into human-readable dates and vice versa.

How to Use the Epoch & Unix Timestamp Conversion Tool

Using the tool is simple. Follow these steps:

  • To convert a Unix timestamp to a human-readable date, enter the timestamp and click "Convert to Date".
  • To convert a date to a Unix timestamp, enter the date in the format DD/MM/YYYY HH:MM:SS and click "Convert to Unix Timestamp".

Benefits of Our Epoch & Unix Timestamp Conversion Tool

  • Fast and accurate conversions between Unix timestamps and human-readable dates.
  • Supports a variety of date formats for ease of use.
  • Essential for developers, system administrators, and anyone working with Unix-based systems.

How to Get the Current Epoch Time in Various Programming Languages

Here’s how you can retrieve the current epoch time in different programming languages:

  • PHP: time();
  • Python: import time; time.time();
  • Ruby: Time.now.to_i;
  • Perl: time;
  • Java: System.currentTimeMillis() / 1000;
  • C#: DateTimeOffset.Now.ToUnixTimeSeconds();
  • Objective-C: [[NSDate date] timeIntervalSince1970];
  • C++11: std::chrono::duration_cast<std::chrono::seconds>(std::chrono::system_clock::now().time_since_epoch()).count();
  • JavaScript: Math.floor(Date.now() / 1000);
  • Go: time.Now().Unix();
  • PowerShell: [int][double]::Parse((Get-Date (get-date).touniversaltime() -UFormat %s));
  • MySQL: SELECT UNIX_TIMESTAMP(NOW());
  • PostgreSQL: SELECT EXTRACT(EPOCH FROM NOW());
  • SQL Server: SELECT DATEDIFF(s, '1970-01-01 00:00:00', GETUTCDATE())
  • Oracle PL/SQL: SELECT (CAST(SYS_EXTRACT_UTC(SYSTIMESTAMP) AS DATE) - TO_DATE('01/01/1970','DD/MM/YYYY')) * 24 * 60 * 60 FROM DUAL;


Related Calculator Tools

Unit Conversion Tool
Unit Conversion Tool

Convert units quickly and accurately.

Go to Tool
PayPal Fee Calculator
PayPal Fee Calculator

Calculate PayPal transaction fees accurately.

Go to Tool
Age Calculator
Age Calculator

Find out your exact age with our accurate calculator.

Go to Tool
Epoch & Unix Timestamp Conversion Tool
Epoch & Unix Timestamp Conversion Tool

Convert Epoch or Unix Timestamp quickly and accurately.

Go to Tool