Timestamp Converter

Current timestamp: 1505873471

Countdown to: 1505900000

Convert timestamp

Convert date

How It Works

Timestamp Online is timestamp converver between unix timestamp and human readable form date. If you want to convert timestamp, it is sufficient to either enter your timestamp into input area, or you can construct URL with your timestamp - http://timestamp.onlinetimestamp/{your-timestamp}.

Timestamp Online also supports countdown, so you can see, how much time remains to particular timestamp. URLs for countdowns have following form - http://timestamp.onlinecountdown/{your-timestamp}.

Unix Time

Unix time (also known as POSIX time or Epoch time) is a system for describing instants in time, defined as the number of seconds that have elapsed since 00:00:00 Coordinated Universal Time (UTC), Thursday, 1 January 1970, not counting leap seconds. It is used widely in Unix-like and many other operating systems and file formats. Because it does not handle leap seconds, it is neither a linear representation of time nor a true representation of UTC.

Current Timestamp Examples

JavaScript
new Date().getTime()/1000;
Python
import time;
time.time()
Java
long ts = System.currentTimeMillis()/1000;
PHP
time();

Timestamp to Date Examples

JavaScript
new Date(1.505873471E+12).toLocaleString();
Python
import datetime
datetime.datetime.fromtimestamp(1505873471).isoformat()
Java
import Java.Util.Date;
import java.text.SimpleDateFormat;
Date currentDate = new Date (1.505873471E+12)
SimpleDateFormat dateFormat = new SimpleDateFormat("YYYY-MM-dd HH:mm:ss")
String date = dateFormat.format(currentDate);
PHP
date("Y-m-d H:i:s", 1505873471);

Date to Timestamp Examples

JavaScript
Date.parse("2017-09-20 04:11:11")/1000;
Python
import time
int(time.mktime(time.strptime("2017-09-20 04:11:11"))) - time.timezone
Java
import java.text.SimpleDateFormat;
SimpleDateFormat dateFormat = new SimpleDateFormat("YYYY-MM-dd HH:mm:ss")
long ts = dateFormat.parse(2017-09-20 04:11:11).getTime()/1000;
PHP
strtotime("2017-09-20 04:11:11");
This website uses cookies to ensure you get the best experience on our website. More info