diff options
Diffstat (limited to 'content/posts/2004-01-15-parsedate-is-my-friend.html')
-rw-r--r-- | content/posts/2004-01-15-parsedate-is-my-friend.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/content/posts/2004-01-15-parsedate-is-my-friend.html b/content/posts/2004-01-15-parsedate-is-my-friend.html new file mode 100644 index 0000000..4d4325f --- /dev/null +++ b/content/posts/2004-01-15-parsedate-is-my-friend.html @@ -0,0 +1,9 @@ +--- +date: "2004-01-15T21:54:01Z" +title: ParseDate is My Friend +--- + +<p> +I really like it when <em>stuff just works ™</em>. Case in point: the <a href='http://www.rubycentral.com/book/lib_standard.html#ParseDate.parsedate'><code>ParseDate</code> module</a> in <a href='http://www.ruby-lang.org/'>Ruby</a>. I'm updating <a href='/software/localfark/'>LocalFark</a> to account for the change in date syntax on <a href='http://www.fark.com/'>Fark</a> and <a href='http://www.totalfark.com/'>TotalFark</a>. On a hunch, I just passed the entire date string scraped from {,<a href='http://www.totalfark.com/'>Total</a>}<a href='http://www.fark.com/'>Fark</a> into <code>ParseDate::parsedate</code>, and it worked exactly as advertised, simplifying the code in <a href='/software/localfark/'>LocalFark</a>. I'm testing the changes now; if everything works okay a new version will be out in less than an hour. +</p> + |