<?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>settimana precedente &#8211; SMsoft &#8211; informatica e dintorni</title>
	<atom:link href="https://blog.smsoft.it/tag/settimana-precedente/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.smsoft.it</link>
	<description>consigli settimanali su MacOS, GNU/Linux ed Open Source</description>
	<lastBuildDate>Tue, 06 Mar 2018 08:30:25 +0000</lastBuildDate>
	<language>it-IT</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=92829</generator>
	<item>
		<title>PHP: recuperare data di inizio e fine della settimana precedente</title>
		<link>https://blog.smsoft.it/2018/03/06/php-recuperare-data-inizio-fine-della-settimana-precedente/</link>
					<comments>https://blog.smsoft.it/2018/03/06/php-recuperare-data-inizio-fine-della-settimana-precedente/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 06 Mar 2018 08:30:25 +0000</pubDate>
				<category><![CDATA[Html e PHP]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[settimana precedente]]></category>
		<guid isPermaLink="false">https://blog.smsoft.it/?p=4001</guid>

					<description><![CDATA[Ecco qui una semplice funzione che può tornarvi utile per recuperare inizio e fine della precedente settimana: function get_prev_week(){ $previous_week = strtotime("-1 week +1 day"); $start_week = strtotime("last sunday midnight",$previous_week); $end_week = strtotime("next saturday",$start_week); $start_week = date("Y-m-d",$start_week); $end_week = date("Y-m-d",$end_week); return array('start_week'=>$start_week, 'end_week'=>$end_week); } enjoy!]]></description>
										<content:encoded><![CDATA[<p>Ecco qui una semplice funzione che può tornarvi utile per recuperare inizio e fine della precedente settimana:<br />
<code>function get_prev_week(){<br />
  $previous_week = strtotime("-1 week +1 day");<br />
  $start_week = strtotime("last sunday midnight",$previous_week);<br />
  $end_week = strtotime("next saturday",$start_week);</p>
<p>  $start_week = date("Y-m-d",$start_week);<br />
  $end_week = date("Y-m-d",$end_week);<br />
  return array('start_week'=>$start_week, 'end_week'=>$end_week);<br />
}</code></p>
<p>enjoy!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.smsoft.it/2018/03/06/php-recuperare-data-inizio-fine-della-settimana-precedente/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
