<?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>PHP Tutorials Code Snippets and Php Tips &#187; parse time</title>
	<atom:link href="http://readytousesolutions.com/phpblog/tag/parse-time/feed/" rel="self" type="application/rss+xml" />
	<link>http://readytousesolutions.com/phpblog</link>
	<description>PHP tutorials - Examples of the most useful scripts</description>
	<lastBuildDate>Thu, 23 Sep 2010 06:54:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHP Tutorial : Parse english time into unix timestamp</title>
		<link>http://readytousesolutions.com/phpblog/php-tutorial-parse-english-time-into-unix-timestamp/</link>
		<comments>http://readytousesolutions.com/phpblog/php-tutorial-parse-english-time-into-unix-timestamp/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 11:07:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Basic PHP]]></category>
		<category><![CDATA[add date to time]]></category>
		<category><![CDATA[Parse english time into unix timestamp]]></category>
		<category><![CDATA[parse time]]></category>
		<category><![CDATA[time to date]]></category>
		<category><![CDATA[unix timestamp]]></category>

		<guid isPermaLink="false">http://www.crivionweb.com/phpblog/?p=122</guid>
		<description><![CDATA[hello, Sometime I discovered a very &#8220;pretty&#8221; php function which parses about any english date/time into unix timestamp. I used it to calculate dates, like adding 1 more day to a date or 1 year who cares. Also, I used &#8230; <a href="http://readytousesolutions.com/phpblog/php-tutorial-parse-english-time-into-unix-timestamp/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>hello,<br />
Sometime I discovered a very &#8220;pretty&#8221; php function which parses about any english date/time into unix timestamp. I used it to calculate dates, like adding 1 more day to a date or 1 year who cares. Also, I used to merge it back into &#8220;normal&#8221; format like dd.mm.yyyy</p>
<pre class="php">
<span class="phpScriptTag"><span class="phpOperator">&lt;</span><span class="phpOperator">?</span>php</span>
<span class="phpComment">//isn&#039;t it simple <span class="phpOperator">?</span>
</span>$oneyear <span class="phpOperator">=</span> <span class="phpFunction">strtotime</span><span class="phpOperator">(</span><span class="phpString">"<span class="phpOperator">+</span><span class="phpNumber">1</span> year"</span><span class="phpOperator">)</span><span class="phpText">;</span>
$oneday <span class="phpOperator">=</span> <span class="phpFunction">strtotime</span><span class="phpOperator">(</span><span class="phpString">"<span class="phpOperator">+</span><span class="phpNumber">1</span> day"</span><span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpComment">//merge those into normal <span class="phpFunction">date</span> format
</span>$oneyear <span class="phpOperator">=</span> <span class="phpFunction">date</span><span class="phpOperator">(</span><span class="phpString">"d<span class="phpOperator">.</span><span class="htmlText">m</span><span class="phpOperator">.</span>Y"</span>, $oneyear<span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpFunction">print</span> $oneyear<span class="phpText">;</span>
$oneday <span class="phpOperator">=</span> <span class="phpFunction">date</span><span class="phpOperator">(</span><span class="phpString">"d<span class="phpOperator">.</span><span class="htmlText">m</span><span class="phpOperator">.</span>Y"</span>, $oneday<span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpFunction">print</span> $oneday<span class="phpText">;</span>
<span class="phpScriptTag"><span class="phpOperator">?</span><span class="phpOperator">&gt;</span></span>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://readytousesolutions.com/phpblog/php-tutorial-parse-english-time-into-unix-timestamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

