<?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>Thomas Hambach - Web engineer &#187; Uncategorized</title>
	<atom:link href="http://www.rdlt.com/category/uncategorized/feed" rel="self" type="application/rss+xml" />
	<link>http://www.rdlt.com</link>
	<description>Web development, Web design &#38; Usability</description>
	<lastBuildDate>Mon, 06 Dec 2010 09:45:41 +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>Update! SQL database belgian postal codes + gps coordinates</title>
		<link>http://www.rdlt.com/update-sql-database-belgian-postal-codes-gps-coordinates.html</link>
		<comments>http://www.rdlt.com/update-sql-database-belgian-postal-codes-gps-coordinates.html#comments</comments>
		<pubDate>Fri, 06 Mar 2009 23:19:43 +0000</pubDate>
		<dc:creator>Thomas Hambach</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rdlt.com/?p=152</guid>
		<description><![CDATA[I&#8217;ve just updated my free database of all belgian postal codes and their gps coordinates! Most of the errors should handled in this version. Let me know in a comment if there is any incorrect data. http://www.rdlt.com/postcodes-van-alle-gemeentes-van-belgie-met-gps-coordinaten Enjoy!]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just updated my free database of all belgian postal codes and their gps coordinates! Most of the errors should handled in this version.</p>
<p>Let me know in a comment if there is any incorrect data.</p>
<p><a href="http://www.rdlt.com/postcodes-van-alle-gemeentes-van-belgie-met-gps-coordinaten">http://www.rdlt.com/postcodes-van-alle-gemeentes-van-belgie-met-gps-coordinaten</a></p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rdlt.com/update-sql-database-belgian-postal-codes-gps-coordinates.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Get monday, sunday, last monday &amp; last sunday</title>
		<link>http://www.rdlt.com/php-get-monday-sunday-last-monday-last-sunday.html</link>
		<comments>http://www.rdlt.com/php-get-monday-sunday-last-monday-last-sunday.html#comments</comments>
		<pubDate>Fri, 22 Aug 2008 11:37:32 +0000</pubDate>
		<dc:creator>Thomas Hambach</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.rdlt.com/?p=115</guid>
		<description><![CDATA[A function I&#8217;ve put togheter for a work-related project to get date of monday, sunday, last monday &#38; last sunday.. Might add in next monday and sunday later. /** * Get Mondays and Sundays * * Get monday, sunday, last monday &#38; last sunday * Example usage: * // to retreive the dates using today [...]]]></description>
			<content:encoded><![CDATA[<p>A function I&#8217;ve put togheter for a work-related project to get date of monday, sunday, last monday &amp; last sunday.. Might add in next monday and sunday later.</p>
<pre><code class="php">
/**
* Get Mondays and Sundays
*
* Get monday, sunday, last monday &amp; last sunday
* Example usage:
* // to retreive the dates using today as starting point
* $mondaysAndSundays = getMondaysAndSundays();
* // to retreive the dates using a custom date as starting point
* $mondaysAndSundays = getMondaysAndSundays('1987-04-14');
*
* @param date $offset Provide a date from where to calculate from in strtotime() translatable format. If none is given, today's date will be used.
*
* @return array
*
*/
function getMondaysAndSundays($offset=false)
{

if(!$offset) $offset = strtotime(date('Y-m-d'));
else $offset = strtotime($offset);

// this week
if(date('w',$offset) == 1)
{
$mas['monday'] = date('Y-m-d',$offset);
}
else
{
$mas['monday'] = date('Y-m-d',strtotime("last Monday",$offset));
}

if(date('w',$offset) == 6)
{
$mas['sunday'] = date('Y-m-d',$offset);
}
else
{
$mas['sunday'] = date('Y-m-d',strtotime("next Sunday",$offset));
}

// last week
if(date('w',$offset) == 1)
{
$mas['lastmonday'] =  date('Y-m-d',strtotime('-1 week',$offset));
}
else
{
$mas['lastmonday'] = date('Y-m-d',strtotime('-1 week', strtotime(date('Y-m-d',strtotime("last Monday",$offset)))));
}

if(date('w') == 6)
{
$mas['lastsunday'] = date('Y-m-d',strtotime('-1 week',$offset));
}
else
{
$mas['lastsunday'] = date('Y-m-d',strtotime("last Sunday",$offset));
}

return $mas;
}
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.rdlt.com/php-get-monday-sunday-last-monday-last-sunday.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

