Online Unix Timestamp Converter | Convert Timestamp to Date and Time

Timestamp Conversion

Current Unix timestamp (seconds)
TimeStamp

What is a Unix Timestamp?

A Unix timestamp (also called epoch time) is the number of seconds that have elapsed since January 1, 1970 (UTC). It's a way to track time as a running total of seconds, making it easier for computers to process and compare dates.

Human-readable timesecond(s)
1 hour3600
1 day86400
1 week604800
1 month (30.44 days)2629743
1 year (365.24 days)31556926

What happens on January 19, 2038?

On January 19, 2038, at 03:14:07 UTC, 32-bit systems will experience an integer overflow in Unix time representation, known as the Year 2038 problem. After this point, these systems will be unable to encode times correctly unless they've been updated to use a wider timestamp format.

TimeStamp.Intro2

LanguageCode
JavaScript
Math.round(new Date() / 1000)
Python
import time time.time()
Ruby
Time.now.to_i
Go
import ('time') int64(time.Now().Unix())
Java(pure)
System.currentTimeMillis() / 1000
Java(joda)
DateTime.now().getMillis() / 1000
Java >= 8
Instant.now().getEpochSecond()
Swift
Date().timeIntervalSince1970
C
#include <sys/time.h> struct timeval tv; gettimeofday(&tv, NULL);
Objective-C
[[NSDate date] timeIntervalSince1970]
MySQL
SELECT unix_timestamp(now())
SQLite
SELECT strftime('%s', 'now')
PHP
<?php pure php time();
Erlang
calendar:datetime_to_gregorian_seconds(calendar:universal_time())-719528*24*3600.
Shell
date +%s
Groovy
(new Date().time / 1000).longValue()
Lua
os.time()
.NET/C#
DateTimeOffset.UtcNow.ToUnixTimeSeconds();
Dart
(new DateTime.now().millisecondsSinceEpoch / 1000).truncate()