<?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/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: [Warm and] Fuzzy DateTime Messages	</title>
	<atom:link href="https://davekz.com/fuzzy-dates/feed/" rel="self" type="application/rss+xml" />
	<link>https://davekz.com/fuzzy-dates/</link>
	<description>The Trials and Tribulations of a Programming Ninja</description>
	<lastBuildDate>Fri, 13 Jun 2014 02:52:17 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.5</generator>
	<item>
		<title>
		By: Jacob Emerick		</title>
		<link>https://davekz.com/fuzzy-dates/#comment-3547</link>

		<dc:creator><![CDATA[Jacob Emerick]]></dc:creator>
		<pubDate>Fri, 13 Jun 2014 02:52:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.davekz.com/?p=786#comment-3547</guid>

					<description><![CDATA[Ha, no, I didn&#039;t include a code example in that one. Complicated logic like that I try to keep as trade secrets ;)

Did want to point out something with your implementation, though. The only way you&#039;ll get a valid response is by physically calling the __construct() method on an instantiated class, which may look a little weird. If you just use new FuzzyDate($variable) you will not get the expected value - the constructor (when called as a constructor) always returns void().

If you wanted to get tricky, replace the __construct with __invoke. Then you could do

&lt;code&gt;$fuzzy = new Fuzzydate();
echo $fuzzy($timesince);&lt;/code&gt;
]]></description>
			<content:encoded><![CDATA[<p>Ha, no, I didn&#8217;t include a code example in that one. Complicated logic like that I try to keep as trade secrets 😉</p>
<p>Did want to point out something with your implementation, though. The only way you&#8217;ll get a valid response is by physically calling the __construct() method on an instantiated class, which may look a little weird. If you just use new FuzzyDate($variable) you will not get the expected value &#8211; the constructor (when called as a constructor) always returns void().</p>
<p>If you wanted to get tricky, replace the __construct with __invoke. Then you could do</p>
<p><code>$fuzzy = new Fuzzydate();<br />
echo $fuzzy($timesince);</code></p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Page Caching using disk: enhanced 

Served from: davekz.com @ 2024-07-11 06:12:51 by W3 Total Cache
-->