<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Commentaires sur : PHP&#160;: convertir un DATETIME en un timestamp UNIX</title>
	<atom:link href="http://pioupioum.fr/snippets/php-convertir-datetime-unix-timestamp.html/feed/" rel="self" type="application/rss+xml" />
	<link>http://pioupioum.fr/snippets/php-convertir-datetime-unix-timestamp.html</link>
	<description>Bloc-note d&#039;un développeur web</description>
	<lastBuildDate>Fri, 03 Sep 2010 07:29:57 +0200</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Par : ArnaudTIsset</title>
		<link>http://pioupioum.fr/snippets/php-convertir-datetime-unix-timestamp.html#comment-2034</link>
		<dc:creator>ArnaudTIsset</dc:creator>
		<pubDate>Fri, 14 May 2010 12:28:33 +0000</pubDate>
		<guid isPermaLink="false">http://pioupioum.fr/?p=346#comment-2034</guid>
		<description>&lt;div class=&quot;comment-content&quot;&gt;&lt;p&gt;ne SURTOUT pas oublier de gérer le timezone en utilisant les fonctions de dates.&lt;/p&gt;

&lt;p&gt;http://www.php.net/manual/fr/function.date-default-timezone-set.php&lt;/p&gt;
&lt;/div&gt;</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="comment-content"><p>ne SURTOUT pas oublier de gérer le timezone en utilisant les fonctions de dates.</p>

<p><a href="http://www.php.net/manual/fr/function.date-default-timezone-set.php" rel="nofollow">http://www.php.net/manual/fr/function.date-default-timezone-set.php</a></p>
</div><!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>Par : SiM07</title>
		<link>http://pioupioum.fr/snippets/php-convertir-datetime-unix-timestamp.html#comment-1190</link>
		<dc:creator>SiM07</dc:creator>
		<pubDate>Wed, 10 Mar 2010 10:21:05 +0000</pubDate>
		<guid isPermaLink="false">http://pioupioum.fr/?p=346#comment-1190</guid>
		<description>&lt;div class=&quot;comment-content&quot;&gt;&lt;p&gt;En effet, vive DateTime().&lt;/p&gt;

&lt;pre lang=&quot;php&quot;&gt;$dt = new DateTime($maDateDansPresqueTousLesFormatsPossible);
$dt-&gt;getTimestamp(); //PHP 5.3
$dt-&gt;format(&#039;U&#039;); // PHP &lt; 5.3&lt;/pre&gt;
&lt;/div&gt;</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="comment-content"><p>En effet, vive DateTime().</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$dt</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> DateTime<span style="color: #009900;">&#40;</span><span style="color: #000088;">$maDateDansPresqueTousLesFormatsPossible</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$dt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getTimestamp</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//PHP 5.3</span>
<span style="color: #000088;">$dt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">format</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'U'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// PHP &lt; 5.3</span></pre></div></div>



</div><!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>Par : Spy-Seth</title>
		<link>http://pioupioum.fr/snippets/php-convertir-datetime-unix-timestamp.html#comment-1188</link>
		<dc:creator>Spy-Seth</dc:creator>
		<pubDate>Wed, 10 Mar 2010 09:51:40 +0000</pubDate>
		<guid isPermaLink="false">http://pioupioum.fr/?p=346#comment-1188</guid>
		<description>&lt;div class=&quot;comment-content&quot;&gt;&lt;p&gt;Où sinon via la méthode createFromFormat() de la classe DateTime implémenté en php 5.3 qui permet de convertir à la volé n&#039;importe quel format de date ;-)&lt;/p&gt;
&lt;/div&gt;</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="comment-content"><p>Où sinon via la méthode createFromFormat() de la classe DateTime implémenté en php 5.3 qui permet de convertir à la volé n&#8217;importe quel format de date <img src='http://pioupioum.fr/wp/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
</div><!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>Par : Oncle Tom</title>
		<link>http://pioupioum.fr/snippets/php-convertir-datetime-unix-timestamp.html#comment-1187</link>
		<dc:creator>Oncle Tom</dc:creator>
		<pubDate>Wed, 10 Mar 2010 09:48:42 +0000</pubDate>
		<guid isPermaLink="false">http://pioupioum.fr/?p=346#comment-1187</guid>
		<description>&lt;div class=&quot;comment-content&quot;&gt;&lt;p&gt;Tu peux aussi passer par &lt;code&gt;strtotime&lt;/code&gt; ou la classe &lt;code&gt;DateTime&lt;/code&gt;, qui le fait probablement aussi bien et nativement :-p&lt;/p&gt;
&lt;/div&gt;</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="comment-content"><p>Tu peux aussi passer par <code>strtotime</code> ou la classe <code>DateTime</code>, qui le fait probablement aussi bien et nativement :-p</p>
</div><!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>Par : Samy</title>
		<link>http://pioupioum.fr/snippets/php-convertir-datetime-unix-timestamp.html#comment-1186</link>
		<dc:creator>Samy</dc:creator>
		<pubDate>Wed, 10 Mar 2010 06:47:53 +0000</pubDate>
		<guid isPermaLink="false">http://pioupioum.fr/?p=346#comment-1186</guid>
		<description>&lt;div class=&quot;comment-content&quot;&gt;&lt;p&gt;Sinon tu passes par strptime pour découper la date en tableau :D&lt;/p&gt;
&lt;/div&gt;</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="comment-content"><p>Sinon tu passes par strptime pour découper la date en tableau <img src='http://pioupioum.fr/wp/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
</div><!-- google_ad_section_end -->]]></content:encoded>
	</item>
	<item>
		<title>Par : patpro</title>
		<link>http://pioupioum.fr/snippets/php-convertir-datetime-unix-timestamp.html#comment-1185</link>
		<dc:creator>patpro</dc:creator>
		<pubDate>Wed, 10 Mar 2010 06:16:17 +0000</pubDate>
		<guid isPermaLink="false">http://pioupioum.fr/?p=346#comment-1185</guid>
		<description>&lt;div class=&quot;comment-content&quot;&gt;&lt;p&gt;Ou alors, si t&#039;es paresseux, tu demandes à MySQL :)&lt;/p&gt;
&lt;/div&gt;</description>
		<content:encoded><![CDATA[<!-- google_ad_section_start --><div class="comment-content"><p>Ou alors, si t&#8217;es paresseux, tu demandes à MySQL <img src='http://pioupioum.fr/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
</div><!-- google_ad_section_end -->]]></content:encoded>
	</item>
</channel>
</rss>
