<?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>laplace&#039;s demon &#187; zend_date</title>
	<atom:link href="http://www.laplacesdemon.com/tag/zend_date/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.laplacesdemon.com</link>
	<description>Süleyman Melikoğlu</description>
	<lastBuildDate>Thu, 26 Jan 2012 10:26:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Zend Date ile tarih aralığı hesaplamak</title>
		<link>http://www.laplacesdemon.com/2009/04/02/zend-date-ile-tarih-araligi-hesaplamak/</link>
		<comments>http://www.laplacesdemon.com/2009/04/02/zend-date-ile-tarih-araligi-hesaplamak/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 19:25:03 +0000</pubDate>
		<dc:creator>solomon</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[zend_date]]></category>

		<guid isPermaLink="false">http://www.laplacesdemon.com/?p=142</guid>
		<description><![CDATA[çok basit olsa da ben yine de buraya yazıyorum. yapmaya çalışılan kaç yaşında olduğunu hesaplamak.  tek yaptığım da iki timestamp&#8217;ı (biri şu anki tarih, diğeri doğum günü) birbirinden çıkartmak. küsüratlı bir rakam elde edilmek istenmiyorsa floor fonksiyonuyla yuvarlana da bilir. bir de 365 e bölmek istenmeyebilir. o ayrı. $now = new Zend_Date(); $dob = new [...]]]></description>
			<content:encoded><![CDATA[<p>çok basit olsa da ben yine de buraya yazıyorum. yapmaya çalışılan kaç yaşında olduğunu hesaplamak.  tek yaptığım da iki timestamp&#8217;ı (biri şu anki tarih, diğeri doğum günü) birbirinden çıkartmak. küsüratlı bir rakam elde edilmek istenmiyorsa floor fonksiyonuyla yuvarlana da bilir. bir de 365 e bölmek istenmeyebilir. o ayrı.</p>
<pre class="brush:php">
$now = new Zend_Date();
$dob = new Zend_Date("954686860", Zend_Date::TIMESTAMP );
echo floor(($now-&gt;getTimestamp() - $dob-&gt;getTimestamp()) / (24 * 60 * 60)) / 365;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.laplacesdemon.com/2009/04/02/zend-date-ile-tarih-araligi-hesaplamak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  www.laplacesdemon.com/tag/zend_date/feed/ ) in 0.08360 seconds, on Feb 10th, 2012 at 6:50 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 10th, 2012 at 7:50 pm UTC -->
