Spanish Property - World Websites - Debt Consolidation - Yellowline - Lab Equipment - Italian Property

PDA

View Full Version : time converstion


dizyn
Nov 21st 2007, 1:50 am
Hi

I am having problem in converting time:

I have "1196242839" and I want to convert it to find exact time.

I tired "strptime()" but get error.

any help

nico_swd
Nov 21st 2007, 2:00 am
What is "exact time"?

You can use date:

echo date('dS M Y, H:i:s', 1196242839);

dizyn
Nov 21st 2007, 2:39 am
thank you
One more thing:

Can I find the difference between 1196242839 and 1196240839

I mean how much time difference is between both? like how many hours, minutes and days etc

salmanshafiq
Nov 21st 2007, 2:45 am
show this post http://forums.digitalpoint.com/showthread.php?t=566711 regarding difference in two time frames

tamen
Nov 21st 2007, 7:58 am
thank you
One more thing:

Can I find the difference between 1196242839 and 1196240839

I mean how much time difference is between both? like how many hours, minutes and days etc

There is (1196242839 - 1196240839) seconds between the two timecodes. From there you can divide by 60 to get minutes. Divide that by 60 again to get hours. Divide by 24 to get days.