aboutsummaryrefslogtreecommitdiff
path: root/content/posts/2004-01-15-parsedate-is-my-friend.html
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2021-10-14 12:47:50 -0400
committerPaul Duncan <pabs@pablotron.org>2021-10-14 12:47:50 -0400
commit4b6c0e31385f5f27a151088c0a2b614495c4e589 (patch)
tree12243cdcd00704bc1a9d94ac9cc128459417370c /content/posts/2004-01-15-parsedate-is-my-friend.html
downloadpablotron.org-4b6c0e31385f5f27a151088c0a2b614495c4e589.tar.bz2
pablotron.org-4b6c0e31385f5f27a151088c0a2b614495c4e589.zip
initial commit, including theme
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.html9
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 &trade;</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>
+