<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>KISPHP Tutorials &#187; transform</title>
	<atom:link href="http://www.kisphp.com/tag/transform/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kisphp.com</link>
	<description>Keep It Simple PHP</description>
	<lastBuildDate>Fri, 12 Feb 2010 21:49:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Seconds to Hour : minutes : seconds</title>
		<link>http://www.kisphp.com/seconds-to-hour-minutes-seconds/</link>
		<comments>http://www.kisphp.com/seconds-to-hour-minutes-seconds/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 09:13:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[floor]]></category>
		<category><![CDATA[hour]]></category>
		<category><![CDATA[minute]]></category>
		<category><![CDATA[second]]></category>
		<category><![CDATA[transform]]></category>

		<guid isPermaLink="false">http://www.kisphp.com/?p=12</guid>
		<description><![CDATA[Seconds to Hour : minutes : seconds
function sec_to_time($sec)
{
$hr = 0;
$min = 0;
$time = array();
while (floor($sec/3600) &#62; 0)
{
$hr++;
$sec-=3600;
}
while (floor($sec/60) &#62; 0)
{
$min++;
$sec-=60;
}
$time['h'] = ($hr &#60; 10) ? "0".$hr : $hr;
$time['m'] = ($min &#60; 10) ? "0".$min : $min;
$time['s'] = ($sec &#60; 10) ? "0".$sec : $sec;
return $time;
}

Example:
$ora = sec_to_time(1400); // 1400 seconds
echo $ora['h']." : ".$ora['m']." : ".$ora['s'];
// 00 : 23 : 20
// that means 23 minutes and 20 seconds

]]></description>
		<wfw:commentRss>http://www.kisphp.com/seconds-to-hour-minutes-seconds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
