diff options
author | Paul Duncan <pabs@pablotron.org> | 2021-10-14 12:47:50 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2021-10-14 12:47:50 -0400 |
commit | 4b6c0e31385f5f27a151088c0a2b614495c4e589 (patch) | |
tree | 12243cdcd00704bc1a9d94ac9cc128459417370c /content/posts/2004-01-15-parsedate-is-my-friend.html | |
download | pablotron.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.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> + |