Unix timestamp

1340150402

Wed 20 Jun 2012 12:00:02 AM UTC

Coordinated Universal Time

Wed Jun 20 00:00:02 2012 UTC

In your local timezone

2012-06-20T00:00:02+00:00

ISO 8601

Wed, 20 Jun 2012 00:00:02 +0000

RFC 2822

2456099

Julian Date

30 Sivan 5772

Hebrew Date

041

Swatch Internet Time

171

Day of the year

June

Month

30

Days in month

25

Week

Wednesday

Day of the week

Time Converter


Convert a unix timestamp
Convert a date

1340150402

Converting Unix timestamp 1340150402 using our Time Converter gives us the following information:

1340150402 is representing the 171 day of the year 2012 in the Gregorian calendar which was a leap year having 366 days. There are 195 days left of the year and this particular timestamp falls on a Wednesday, June 20 of week 25 at 00:00 UTC in the monrning meaning that about 0% of the day has passed. At this specifc time, the moon was in its New moon phase, about 248,211 miles (or 399,457 km) from Earth.

On this day, many notable and historically important events have taken place. But to only mention a few, in year 451, Battle of Chalons: Flavius Aetius battles Attila the Hun. After the battle, which was inconclusive, Attila retreats, causing the Romans to interpret it as a victory. And later in 1180 first Battle of Uji, starting the Genpei War in Japan. More recently, in 2019 iran's Air Defense Forces shoot down an American surveillance drone over the Strait of Hormuz amid rising tensions between the two countries.

We've also, tragically, seen a few famous deaths throughout history on this day. One notable mention is in 465 when Emperor Wencheng of Northern Wei (born 440) passed away and in 656 when Uthman ibn Affan, Rashidun caliph (born in 577) left us. And more recently, Taylor Wily, American actor, sumo wrestler and mixed martial artist (born 1968) who died in in 2024.

June 20, or 1340150402, is also a day that we should celebrate. This date marks the birth of many influential people throughout history, including Ali az-Zahir, Fatimid caliph of Egypt (died 1036) who was born in 1005, and later in 1389 - John of Lancaster, 1st Duke of Bedford, English statesman (died 1435). More recently, Hans Niemann, American chess player who was born in 2003.

Conversion help

For your conveniance, we have listed the conversion syntaxes for 1340150402 timestamp to serveral of the most popular programming lanugages below.

PHP
date('Y-m-d H:i:s', 1340150402);
MySQL
select from_unixtime(1340150402);
JavaScript
new Date(1340150402*1000).toString();
C++
time_t epch = 1340150402;
printf("%i -> %s", epch, asctime(gmtime(&epch))); (time.h);
C#
String.Format("{0:d/M/yyyy HH:mm:ss}", new System.DateTime(1970, 1, 1, 0, 0, 0, 0).AddSeconds(1340150402));
Java
new SimpleDateFormat("MM/dd/yyyy HH:mm:ss").format(new Date(1340150402 * 1000L))
Ruby
require 'date'
DateTime.strptime("1340150402",'%s')
Binary
10011111 11000010 00100101 0000010
Hexadecimal
4fe11282

A few related timestamps to 1340150402 are:

Start of year
1325376000
End of Year
1356998399
Start of month
1338508800
End of month
1341100799
Start of day
1340150400
End fo day
1340236799
Start of hour
1340150400
End fo hour
1340153999
Start of min
1340150400
End fo min
1340150459