Unix timestamp

1340240340

Thu 21 Jun 2012 12:59:00 AM UTC

Coordinated Universal Time

Thu Jun 21 00:59:00 2012 UTC

In your local timezone

2012-06-21T00:59:00+00:00

ISO 8601

Thu, 21 Jun 2012 00:59:00 +0000

RFC 2822

2456100

Julian Date

1 Tammuz 5772

Hebrew Date

082

Swatch Internet Time

172

Day of the year

June

Month

30

Days in month

25

Week

Thursday

Day of the week

Time Converter


Convert a unix timestamp
Convert a date

1340240340

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

1340240340 is representing the 172 day of the year 2012 in the Gregorian calendar which was a leap year having 366 days. There are 194 days left of the year and this particular timestamp falls on a Thursday, June 21 of week 25 at 00:59 UTC in the monrning meaning that about 4% of the day has passed. At this specifc time, the moon was in its New moon phase, about 245,913 miles (or 395,759 km) from Earth.

On this day, many notable and historically important events have taken place. But to only mention a few, in year 533, a Byzantine expeditionary fleet under Belisarios sails from Constantinople to attack the Vandals in Africa, via Greece and Sicily. And later in 1307 Külüg Khan is enthroned as Khagan of the Mongols and Wuzong of the Yuan. More recently, in 2009 Greenland assumes self-rule.

We've also, tragically, seen a few famous deaths throughout history on this day. One notable mention is in 532 when Emperor Jiemin of Northern Wei, former Northern Wei emperor passed away and in 866 when Rodulf, Frankish Archbishop left us. And more recently, Frederick Crews, American essayist and literary critic (born 1933) who died in in 2024.

June 21, or 1340240340, is also a day that we should celebrate. This date marks the birth of many influential people throughout history, including Abu Ja'far Ahmad ibn Muhammad, Saffarid emir (died 963) who was born in 906, and later in 1002 - Pope Leo IX (died 1054). More recently, Scottie Scheffler, American golfer who was born in 1996.

Conversion help

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

PHP
date('Y-m-d H:i:s', 1340240340);
MySQL
select from_unixtime(1340240340);
JavaScript
new Date(1340240340*1000).toString();
C++
time_t epch = 1340240340;
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(1340240340));
Java
new SimpleDateFormat("MM/dd/yyyy HH:mm:ss").format(new Date(1340240340 * 1000L))
Ruby
require 'date'
DateTime.strptime("1340240340",'%s')
Binary
10011111 11000100 11100011 1010100
Hexadecimal
4fe271d4

A few related timestamps to 1340240340 are:

Start of year
1325376000
End of Year
1356998399
Start of month
1338508800
End of month
1341100799
Start of day
1340236800
End fo day
1340323199
Start of hour
1340236800
End fo hour
1340240399
Start of min
1340240340
End fo min
1340240399