Drop Down Menu Bar | JV Codes

The Current Unix Epoch Time

--

Convert Unix Timestamp to Readable Date

Time difference:

Convert Readable Date and Time to Unix Timestamp

Time difference:

Calculate Start and End Time

messages.invalid_input

messages.invalid_input
messages.invalid_selection

Time difference:

Convert Seconds to Days, Hours, Minutes

Time difference:

What is Epoch Time?

Unix epoch time (or Unix time, POSIX time, or Unix timestamp) is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), excluding leap seconds. Literally, the epoch is Unix time 0 (midnight 1/1/1970), but "epoch" is often used synonymously with Unix time. Some systems store epoch dates as a signed 32-bit integer, which could cause problems on January 19, 2038 (known as the Year 2038 problem or Y2038). The converter on this page converts timestamps in seconds (10 digits), milliseconds (13 digits), and microseconds (16 digits) to readable dates.

Convert Epoch

Hours Second
1 hour Seconds
1 day 86400 seconds
1 week 604800 seconds
1 month (30.44 days) 2629743 seconds
1 year (365.24 days) 31556926 seconds

How to get the current epoch time in ...

Language This is an example message. More
PHP time()
Python import time; time.time()
Ruby Time.now
Perl time
Java long epoch = System.currentTimeMillis()/1000;
C# DateTimeOffset.Now.ToUnixTimeSeconds()
Objective-C [[NSDate date] timeIntervalSince1970];
C++11 double now = std::chrono::duration_cast<std::chrono::seconds> (std::chrono::system_clock::now().time_since_epoch()).count();
Lua epoch = os.time()
VBScript/ASP See examples
AutoIT _DateDiff('s', "1970/01/01 00:00:00", _NowCalc())
Delphi Epoch := DateTimetoUnix(Now);
Dart DateTime.now().microsecondsSinceEpoch
R as.numeric(Sys.time())
Erlang/OTP erlang:system_time(seconds).
MySQL SELECT unix_timestamp(now())
PostgreSQL SELECT extract(epoch FROM now());
SQLite SELECT strftime('%s', 'now');
Oracle PL/SQL SELECT (CAST(SYS_EXTRACT_UTC(SYSTIMESTAMP) AS DATE) - TO_DATE('01/01/1970','DD/MM/YYYY')) * 24 * 60 * 60 FROM DUAL;
SQL Server SELECT DATEDIFF(s, '1970-01-01 00:00:00', GETUTCDATE())
IBM Informix SELECT dbinfo('utc_current') FROM sysmaster:sysdual;
JavaScript Math.floor(new Date().getTime()/1000.0)
Visual FoxPro DATETIME() - {^1970/01/01 00:00:00}
Go time.Now().Unix()
Adobe ColdFusion <cfset epochTime = left(getTickcount(), 10)>
Tcl/Tk clock seconds
Unix/Linux Shell date +%s
Solaris /usr/bin/nawk 'BEGIN {print srand()}'